typeorderedcollectionpage

package
v1.7.0-gts Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package typeorderedcollectionpage contains the implementation for the OrderedCollectionPage type. All applications are strongly encouraged to use the interface instead of this concrete definition. The interfaces allow applications to consume only the types and properties needed and be independent of the go-fed implementation if another alternative implementation is created. This package is code-generated and subject to the same license as the go-fed tool used to generate it.

This package is independent of other types' and properties' implementations by having a Manager injected into it to act as a factory for the concrete implementations. The implementations have been generated into their own separate subpackages for each vocabulary.

Strongly consider using the interfaces instead of this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivityStreamsOrderedCollectionPageExtends

func ActivityStreamsOrderedCollectionPageExtends(other vocab.Type) bool

ActivityStreamsOrderedCollectionPageExtends returns true if the OrderedCollectionPage type extends from the other type.

func IsOrExtendsOrderedCollectionPage

func IsOrExtendsOrderedCollectionPage(other vocab.Type) bool

IsOrExtendsOrderedCollectionPage returns true if the other provided type is the OrderedCollectionPage type or extends from the OrderedCollectionPage type.

func OrderedCollectionPageIsDisjointWith

func OrderedCollectionPageIsDisjointWith(other vocab.Type) bool

OrderedCollectionPageIsDisjointWith returns true if the other provided type is disjoint with the OrderedCollectionPage type.

func OrderedCollectionPageIsExtendedBy

func OrderedCollectionPageIsExtendedBy(other vocab.Type) bool

OrderedCollectionPageIsExtendedBy returns true if the other provided type extends from the OrderedCollectionPage type. Note that it returns false if the types are the same; see the "IsOrExtendsOrderedCollectionPage" variant instead.

func SetManager

func SetManager(m privateManager)

SetManager sets the manager package-global variable. For internal use only, do not use as part of Application behavior. Must be called at golang init time.

func SetTypePropertyConstructor

func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty)

SetTypePropertyConstructor sets the "type" property's constructor in the package-global variable. For internal use only, do not use as part of Application behavior. Must be called at golang init time. Permits ActivityStreams types to correctly set their "type" property at construction time, so users don't have to remember to do so each time. It is dependency injected so other go-fed compatible implementations could inject their own type.

Types

type ActivityStreamsOrderedCollectionPage

type ActivityStreamsOrderedCollectionPage struct {
	ActivityStreamsAltitude     vocab.ActivityStreamsAltitudeProperty
	ActivityStreamsAttachment   vocab.ActivityStreamsAttachmentProperty
	ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
	ActivityStreamsAudience     vocab.ActivityStreamsAudienceProperty
	ActivityStreamsBcc          vocab.ActivityStreamsBccProperty
	ActivityStreamsBto          vocab.ActivityStreamsBtoProperty
	ActivityStreamsCc           vocab.ActivityStreamsCcProperty
	ActivityStreamsContent      vocab.ActivityStreamsContentProperty
	ActivityStreamsContext      vocab.ActivityStreamsContextProperty
	ActivityStreamsCurrent      vocab.ActivityStreamsCurrentProperty
	ActivityStreamsDuration     vocab.ActivityStreamsDurationProperty
	ActivityStreamsEndTime      vocab.ActivityStreamsEndTimeProperty
	ActivityStreamsFirst        vocab.ActivityStreamsFirstProperty
	ActivityStreamsGenerator    vocab.ActivityStreamsGeneratorProperty
	ActivityStreamsIcon         vocab.ActivityStreamsIconProperty
	JSONLDId                    vocab.JSONLDIdProperty
	ActivityStreamsImage        vocab.ActivityStreamsImageProperty
	ActivityStreamsInReplyTo    vocab.ActivityStreamsInReplyToProperty
	ActivityStreamsLast         vocab.ActivityStreamsLastProperty
	ActivityStreamsLikes        vocab.ActivityStreamsLikesProperty
	ActivityStreamsLocation     vocab.ActivityStreamsLocationProperty
	ActivityStreamsMediaType    vocab.ActivityStreamsMediaTypeProperty
	ActivityStreamsName         vocab.ActivityStreamsNameProperty
	ActivityStreamsNext         vocab.ActivityStreamsNextProperty
	ActivityStreamsObject       vocab.ActivityStreamsObjectProperty
	ActivityStreamsOrderedItems vocab.ActivityStreamsOrderedItemsProperty
	ActivityStreamsPartOf       vocab.ActivityStreamsPartOfProperty
	ActivityStreamsPrev         vocab.ActivityStreamsPrevProperty
	ActivityStreamsPreview      vocab.ActivityStreamsPreviewProperty
	ActivityStreamsPublished    vocab.ActivityStreamsPublishedProperty
	ActivityStreamsReplies      vocab.ActivityStreamsRepliesProperty
	ActivityStreamsSensitive    vocab.ActivityStreamsSensitiveProperty
	ActivityStreamsShares       vocab.ActivityStreamsSharesProperty
	ActivityStreamsSource       vocab.ActivityStreamsSourceProperty
	ActivityStreamsStartIndex   vocab.ActivityStreamsStartIndexProperty
	ActivityStreamsStartTime    vocab.ActivityStreamsStartTimeProperty
	ActivityStreamsSummary      vocab.ActivityStreamsSummaryProperty
	ActivityStreamsTag          vocab.ActivityStreamsTagProperty
	ActivityStreamsTo           vocab.ActivityStreamsToProperty
	ActivityStreamsTotalItems   vocab.ActivityStreamsTotalItemsProperty
	JSONLDType                  vocab.JSONLDTypeProperty
	ActivityStreamsUpdated      vocab.ActivityStreamsUpdatedProperty
	ActivityStreamsUrl          vocab.ActivityStreamsUrlProperty
	// contains filtered or unexported fields
}

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.

Example 8 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6c-jsonld):

{
  "id": "http://example.org/foo?page=1",
  "orderedItems": [
    {
      "name": "A Simple Note",
      "type": "Note"
    },
    {
      "name": "Another Simple Note",
      "type": "Note"
    }
  ],
  "partOf": "http://example.org/foo",
  "summary": "Page 1 of Sally's notes",
  "type": "OrderedCollectionPage"
}

func DeserializeOrderedCollectionPage

func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsOrderedCollectionPage, error)

DeserializeOrderedCollectionPage creates a OrderedCollectionPage from a map representation that has been unmarshalled from a text or binary format.

func NewActivityStreamsOrderedCollectionPage

func NewActivityStreamsOrderedCollectionPage() *ActivityStreamsOrderedCollectionPage

NewActivityStreamsOrderedCollectionPage creates a new OrderedCollectionPage type

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsAltitude

GetActivityStreamsAltitude returns the "altitude" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsAttachment

GetActivityStreamsAttachment returns the "attachment" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsAttributedTo

GetActivityStreamsAttributedTo returns the "attributedTo" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsAudience

GetActivityStreamsAudience returns the "audience" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsBcc

GetActivityStreamsBcc returns the "bcc" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsBto

GetActivityStreamsBto returns the "bto" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsCc

GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsContent

GetActivityStreamsContent returns the "content" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsContext

GetActivityStreamsContext returns the "context" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsCurrent

GetActivityStreamsCurrent returns the "current" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsDuration

GetActivityStreamsDuration returns the "duration" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsEndTime

GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsFirst

GetActivityStreamsFirst returns the "first" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsGenerator

GetActivityStreamsGenerator returns the "generator" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsIcon

GetActivityStreamsIcon returns the "icon" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsImage

GetActivityStreamsImage returns the "image" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsInReplyTo

GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsLast

GetActivityStreamsLast returns the "last" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsLikes

GetActivityStreamsLikes returns the "likes" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsLocation

GetActivityStreamsLocation returns the "location" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsMediaType

GetActivityStreamsMediaType returns the "mediaType" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsName

GetActivityStreamsName returns the "name" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsNext

GetActivityStreamsNext returns the "next" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsObject

GetActivityStreamsObject returns the "object" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsOrderedItems

GetActivityStreamsOrderedItems returns the "orderedItems" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsPartOf

GetActivityStreamsPartOf returns the "partOf" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsPrev

GetActivityStreamsPrev returns the "prev" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsPreview

GetActivityStreamsPreview returns the "preview" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsPublished

GetActivityStreamsPublished returns the "published" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsReplies

GetActivityStreamsReplies returns the "replies" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsSensitive

GetActivityStreamsSensitive returns the "sensitive" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsShares

GetActivityStreamsShares returns the "shares" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsSource

GetActivityStreamsSource returns the "source" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsStartIndex

GetActivityStreamsStartIndex returns the "startIndex" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsStartTime

GetActivityStreamsStartTime returns the "startTime" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsSummary

GetActivityStreamsSummary returns the "summary" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsTag

GetActivityStreamsTag returns the "tag" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsTo

GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsTotalItems

GetActivityStreamsTotalItems returns the "totalItems" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsUpdated

GetActivityStreamsUpdated returns the "updated" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetActivityStreamsUrl

GetActivityStreamsUrl returns the "url" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetJSONLDId

GetJSONLDId returns the "id" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetJSONLDType

GetJSONLDType returns the "type" property if it exists, and nil otherwise.

func (ActivityStreamsOrderedCollectionPage) GetTypeName

func (this ActivityStreamsOrderedCollectionPage) GetTypeName() string

GetTypeName returns the name of this type.

func (ActivityStreamsOrderedCollectionPage) GetUnknownProperties

func (this ActivityStreamsOrderedCollectionPage) GetUnknownProperties() map[string]interface{}

GetUnknownProperties returns the unknown properties for the OrderedCollectionPage type. Note that this should not be used by app developers. It is only used to help determine which implementation is LessThan the other. Developers who are creating a different implementation of this type's interface can use this method in their LessThan implementation, but routine ActivityPub applications should not use this to bypass the code generation tool.

func (ActivityStreamsOrderedCollectionPage) IsExtending

func (this ActivityStreamsOrderedCollectionPage) IsExtending(other vocab.Type) bool

IsExtending returns true if the OrderedCollectionPage type extends from the other type.

func (ActivityStreamsOrderedCollectionPage) JSONLDContext

func (this ActivityStreamsOrderedCollectionPage) JSONLDContext() map[string]string

JSONLDContext returns the JSONLD URIs required in the context string for this type and the specific properties that are set. The value in the map is the alias used to import the type and its properties.

func (ActivityStreamsOrderedCollectionPage) LessThan

LessThan computes if this OrderedCollectionPage is lesser, with an arbitrary but stable determination.

func (ActivityStreamsOrderedCollectionPage) Serialize

func (this ActivityStreamsOrderedCollectionPage) Serialize() (map[string]interface{}, error)

Serialize converts this into an interface representation suitable for marshalling into a text or binary format.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsAltitude

SetActivityStreamsAltitude sets the "altitude" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsAttachment

SetActivityStreamsAttachment sets the "attachment" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsAttributedTo

func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty)

SetActivityStreamsAttributedTo sets the "attributedTo" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsAudience

SetActivityStreamsAudience sets the "audience" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsBcc

SetActivityStreamsBcc sets the "bcc" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsBto

SetActivityStreamsBto sets the "bto" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsCc

SetActivityStreamsCc sets the "cc" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsContent

SetActivityStreamsContent sets the "content" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsContext

SetActivityStreamsContext sets the "context" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsCurrent

SetActivityStreamsCurrent sets the "current" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsDuration

SetActivityStreamsDuration sets the "duration" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsEndTime

SetActivityStreamsEndTime sets the "endTime" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsFirst

SetActivityStreamsFirst sets the "first" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsGenerator

SetActivityStreamsGenerator sets the "generator" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsIcon

SetActivityStreamsIcon sets the "icon" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsImage

SetActivityStreamsImage sets the "image" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsInReplyTo

SetActivityStreamsInReplyTo sets the "inReplyTo" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsLast

SetActivityStreamsLast sets the "last" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsLikes

SetActivityStreamsLikes sets the "likes" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsLocation

SetActivityStreamsLocation sets the "location" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsMediaType

SetActivityStreamsMediaType sets the "mediaType" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsName

SetActivityStreamsName sets the "name" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsNext

SetActivityStreamsNext sets the "next" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsObject

SetActivityStreamsObject sets the "object" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsOrderedItems

func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsOrderedItems(i vocab.ActivityStreamsOrderedItemsProperty)

SetActivityStreamsOrderedItems sets the "orderedItems" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsPartOf

SetActivityStreamsPartOf sets the "partOf" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsPrev

SetActivityStreamsPrev sets the "prev" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsPreview

SetActivityStreamsPreview sets the "preview" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsPublished

SetActivityStreamsPublished sets the "published" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsReplies

SetActivityStreamsReplies sets the "replies" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsSensitive

SetActivityStreamsSensitive sets the "sensitive" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsShares

SetActivityStreamsShares sets the "shares" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsSource

SetActivityStreamsSource sets the "source" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsStartIndex

SetActivityStreamsStartIndex sets the "startIndex" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsStartTime

SetActivityStreamsStartTime sets the "startTime" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsSummary

SetActivityStreamsSummary sets the "summary" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsTag

SetActivityStreamsTag sets the "tag" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsTo

SetActivityStreamsTo sets the "to" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsTotalItems

SetActivityStreamsTotalItems sets the "totalItems" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsUpdated

SetActivityStreamsUpdated sets the "updated" property.

func (*ActivityStreamsOrderedCollectionPage) SetActivityStreamsUrl

SetActivityStreamsUrl sets the "url" property.

func (*ActivityStreamsOrderedCollectionPage) SetJSONLDId

SetJSONLDId sets the "id" property.

func (*ActivityStreamsOrderedCollectionPage) SetJSONLDType

SetJSONLDType sets the "type" property.

func (ActivityStreamsOrderedCollectionPage) VocabularyURI

func (this ActivityStreamsOrderedCollectionPage) VocabularyURI() string

VocabularyURI returns the vocabulary's URI as a string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL