propertystreams

package
v1.0.1-gts Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package propertystreams contains the implementation for the streams property. 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 DeserializeStreamsProperty

func DeserializeStreamsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStreamsProperty, error)

DeserializeStreamsProperty creates a "streams" property from an interface representation that has been unmarshalled from a text or binary format.

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.

Types

type ActivityStreamsStreamsProperty

type ActivityStreamsStreamsProperty struct {
	// contains filtered or unexported fields
}

ActivityStreamsStreamsProperty is the non-functional property "streams". It is permitted to have one or more values, and of different value types.

func NewActivityStreamsStreamsProperty

func NewActivityStreamsStreamsProperty() *ActivityStreamsStreamsProperty

NewActivityStreamsStreamsProperty creates a new streams property.

func (*ActivityStreamsStreamsProperty) AppendActivityStreamsCollection

func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection)

AppendActivityStreamsCollection appends a Collection value to the back of a list of the property "streams". Invalidates iterators that are traversing using Prev.

func (*ActivityStreamsStreamsProperty) AppendActivityStreamsCollectionPage

func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage)

AppendActivityStreamsCollectionPage appends a CollectionPage value to the back of a list of the property "streams". Invalidates iterators that are traversing using Prev.

func (*ActivityStreamsStreamsProperty) AppendActivityStreamsOrderedCollection

func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection)

AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the back of a list of the property "streams". Invalidates iterators that are traversing using Prev.

func (*ActivityStreamsStreamsProperty) AppendActivityStreamsOrderedCollectionPage

func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage)

AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage value to the back of a list of the property "streams". Invalidates iterators that are traversing using Prev.

func (*ActivityStreamsStreamsProperty) AppendIRI

func (this *ActivityStreamsStreamsProperty) AppendIRI(v *url.URL)

AppendIRI appends an IRI value to the back of a list of the property "streams"

func (*ActivityStreamsStreamsProperty) AppendType

func (this *ActivityStreamsStreamsProperty) AppendType(t vocab.Type) error

PrependType prepends an arbitrary type value to the front of a list of the property "streams". Invalidates iterators that are traversing using Prev. Returns an error if the type is not a valid one to set for this property.

func (ActivityStreamsStreamsProperty) At

At returns the property value for the specified index. Panics if the index is out of bounds.

func (ActivityStreamsStreamsProperty) Begin

Begin returns the first iterator, or nil if empty. Can be used with the iterator's Next method and this property's End method to iterate from front to back through all values.

func (ActivityStreamsStreamsProperty) Empty

func (this ActivityStreamsStreamsProperty) Empty() bool

Empty returns returns true if there are no elements.

func (ActivityStreamsStreamsProperty) End

End returns beyond-the-last iterator, which is nil. Can be used with the iterator's Next method and this property's Begin method to iterate from front to back through all values.

func (*ActivityStreamsStreamsProperty) InsertActivityStreamsCollection

func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection)

InsertActivityStreamsCollection inserts a Collection value at the specified index for a property "streams". Existing elements at that index and higher are shifted back once. Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) InsertActivityStreamsCollectionPage

func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage)

InsertActivityStreamsCollectionPage inserts a CollectionPage value at the specified index for a property "streams". Existing elements at that index and higher are shifted back once. Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) InsertActivityStreamsOrderedCollection

func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection)

InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the specified index for a property "streams". Existing elements at that index and higher are shifted back once. Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) InsertActivityStreamsOrderedCollectionPage

func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage)

InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage value at the specified index for a property "streams". Existing elements at that index and higher are shifted back once. Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) InsertIRI

func (this *ActivityStreamsStreamsProperty) InsertIRI(idx int, v *url.URL)

Insert inserts an IRI value at the specified index for a property "streams". Existing elements at that index and higher are shifted back once. Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) InsertType

func (this *ActivityStreamsStreamsProperty) InsertType(idx int, t vocab.Type) error

PrependType prepends an arbitrary type value to the front of a list of the property "streams". Invalidates all iterators. Returns an error if the type is not a valid one to set for this property.

func (ActivityStreamsStreamsProperty) JSONLDContext

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

JSONLDContext returns the JSONLD URIs required in the context string for this property and the specific values that are set. The value in the map is the alias used to import the property's value or values.

func (ActivityStreamsStreamsProperty) KindIndex

func (this ActivityStreamsStreamsProperty) KindIndex(idx int) int

KindIndex computes an arbitrary value for indexing this kind of value. This is a leaky API method specifically needed only for alternate implementations for go-fed. Applications should not use this method. Panics if the index is out of bounds.

func (ActivityStreamsStreamsProperty) Len

func (this ActivityStreamsStreamsProperty) Len() (length int)

Len returns the number of values that exist for the "streams" property.

func (ActivityStreamsStreamsProperty) Less

func (this ActivityStreamsStreamsProperty) Less(i, j int) bool

Less computes whether another property is less than this one. Mixing types results in a consistent but arbitrary ordering

func (ActivityStreamsStreamsProperty) LessThan

LessThan compares two instances of this property with an arbitrary but stable comparison. Applications should not use this because it is only meant to help alternative implementations to go-fed to be able to normalize nonfunctional properties.

func (ActivityStreamsStreamsProperty) Name

Name returns the name of this property ("streams") with any alias.

func (*ActivityStreamsStreamsProperty) PrependActivityStreamsCollection

func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection)

PrependActivityStreamsCollection prepends a Collection value to the front of a list of the property "streams". Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) PrependActivityStreamsCollectionPage

func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage)

PrependActivityStreamsCollectionPage prepends a CollectionPage value to the front of a list of the property "streams". Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) PrependActivityStreamsOrderedCollection

func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection)

PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to the front of a list of the property "streams". Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) PrependActivityStreamsOrderedCollectionPage

func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage)

PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage value to the front of a list of the property "streams". Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) PrependIRI

func (this *ActivityStreamsStreamsProperty) PrependIRI(v *url.URL)

PrependIRI prepends an IRI value to the front of a list of the property "streams".

func (*ActivityStreamsStreamsProperty) PrependType

func (this *ActivityStreamsStreamsProperty) PrependType(t vocab.Type) error

PrependType prepends an arbitrary type value to the front of a list of the property "streams". Invalidates all iterators. Returns an error if the type is not a valid one to set for this property.

func (*ActivityStreamsStreamsProperty) Remove

func (this *ActivityStreamsStreamsProperty) Remove(idx int)

Remove deletes an element at the specified index from a list of the property "streams", regardless of its type. Panics if the index is out of bounds. Invalidates all iterators.

func (ActivityStreamsStreamsProperty) Serialize

func (this ActivityStreamsStreamsProperty) Serialize() (interface{}, error)

Serialize converts this into an interface representation suitable for marshalling into a text or binary format. Applications should not need this function as most typical use cases serialize types instead of individual properties. It is exposed for alternatives to go-fed implementations to use.

func (*ActivityStreamsStreamsProperty) SetActivityStreamsCollection

func (this *ActivityStreamsStreamsProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection)

SetActivityStreamsCollection sets a Collection value to be at the specified index for the property "streams". Panics if the index is out of bounds. Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) SetActivityStreamsCollectionPage

func (this *ActivityStreamsStreamsProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage)

SetActivityStreamsCollectionPage sets a CollectionPage value to be at the specified index for the property "streams". Panics if the index is out of bounds. Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) SetActivityStreamsOrderedCollection

func (this *ActivityStreamsStreamsProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection)

SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the specified index for the property "streams". Panics if the index is out of bounds. Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) SetActivityStreamsOrderedCollectionPage

func (this *ActivityStreamsStreamsProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage)

SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to be at the specified index for the property "streams". Panics if the index is out of bounds. Invalidates all iterators.

func (*ActivityStreamsStreamsProperty) SetIRI

func (this *ActivityStreamsStreamsProperty) SetIRI(idx int, v *url.URL)

SetIRI sets an IRI value to be at the specified index for the property "streams". Panics if the index is out of bounds.

func (*ActivityStreamsStreamsProperty) SetType

func (this *ActivityStreamsStreamsProperty) SetType(idx int, t vocab.Type) error

SetType sets an arbitrary type value to the specified index of the property "streams". Invalidates all iterators. Returns an error if the type is not a valid one to set for this property. Panics if the index is out of bounds.

func (ActivityStreamsStreamsProperty) Swap

func (this ActivityStreamsStreamsProperty) Swap(i, j int)

Swap swaps the location of values at two indices for the "streams" property.

type ActivityStreamsStreamsPropertyIterator

type ActivityStreamsStreamsPropertyIterator struct {
	// contains filtered or unexported fields
}

ActivityStreamsStreamsPropertyIterator is an iterator for a property. It is permitted to be one of multiple value types. At most, one type of value can be present, or none at all. Setting a value will clear the other types of values so that only one of the 'Is' methods will return true. It is possible to clear all values, so that this property is empty.

func NewActivityStreamsStreamsPropertyIterator

func NewActivityStreamsStreamsPropertyIterator() *ActivityStreamsStreamsPropertyIterator

NewActivityStreamsStreamsPropertyIterator creates a new ActivityStreamsStreams property.

func (ActivityStreamsStreamsPropertyIterator) GetActivityStreamsCollection

func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection

GetActivityStreamsCollection returns the value of this property. When IsActivityStreamsCollection returns false, GetActivityStreamsCollection will return an arbitrary value.

func (ActivityStreamsStreamsPropertyIterator) GetActivityStreamsCollectionPage

func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage

GetActivityStreamsCollectionPage returns the value of this property. When IsActivityStreamsCollectionPage returns false, GetActivityStreamsCollectionPage will return an arbitrary value.

func (ActivityStreamsStreamsPropertyIterator) GetActivityStreamsOrderedCollection

func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection

GetActivityStreamsOrderedCollection returns the value of this property. When IsActivityStreamsOrderedCollection returns false, GetActivityStreamsOrderedCollection will return an arbitrary value.

func (ActivityStreamsStreamsPropertyIterator) GetActivityStreamsOrderedCollectionPage

func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage

GetActivityStreamsOrderedCollectionPage returns the value of this property. When IsActivityStreamsOrderedCollectionPage returns false, GetActivityStreamsOrderedCollectionPage will return an arbitrary value.

func (ActivityStreamsStreamsPropertyIterator) GetIRI

GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will return an arbitrary value.

func (ActivityStreamsStreamsPropertyIterator) GetType

GetType returns the value in this property as a Type. Returns nil if the value is not an ActivityStreams type, such as an IRI or another value.

func (ActivityStreamsStreamsPropertyIterator) HasAny

HasAny returns true if any of the different values is set.

func (ActivityStreamsStreamsPropertyIterator) IsActivityStreamsCollection

func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsCollection() bool

IsActivityStreamsCollection returns true if this property has a type of "Collection". When true, use the GetActivityStreamsCollection and SetActivityStreamsCollection methods to access and set this property.

func (ActivityStreamsStreamsPropertyIterator) IsActivityStreamsCollectionPage

func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsCollectionPage() bool

IsActivityStreamsCollectionPage returns true if this property has a type of "CollectionPage". When true, use the GetActivityStreamsCollectionPage and SetActivityStreamsCollectionPage methods to access and set this property.

func (ActivityStreamsStreamsPropertyIterator) IsActivityStreamsOrderedCollection

func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsOrderedCollection() bool

IsActivityStreamsOrderedCollection returns true if this property has a type of "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection and SetActivityStreamsOrderedCollection methods to access and set this property.

func (ActivityStreamsStreamsPropertyIterator) IsActivityStreamsOrderedCollectionPage

func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool

IsActivityStreamsOrderedCollectionPage returns true if this property has a type of "OrderedCollectionPage". When true, use the GetActivityStreamsOrderedCollectionPage and SetActivityStreamsOrderedCollectionPage methods to access and set this property.

func (ActivityStreamsStreamsPropertyIterator) IsIRI

IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI to access and set this property

func (ActivityStreamsStreamsPropertyIterator) JSONLDContext

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

JSONLDContext returns the JSONLD URIs required in the context string for this property and the specific values that are set. The value in the map is the alias used to import the property's value or values.

func (ActivityStreamsStreamsPropertyIterator) KindIndex

KindIndex computes an arbitrary value for indexing this kind of value. This is a leaky API detail only for folks looking to replace the go-fed implementation. Applications should not use this method.

func (ActivityStreamsStreamsPropertyIterator) LessThan

LessThan compares two instances of this property with an arbitrary but stable comparison. Applications should not use this because it is only meant to help alternative implementations to go-fed to be able to normalize nonfunctional properties.

func (ActivityStreamsStreamsPropertyIterator) Name

Name returns the name of this property: "ActivityStreamsStreams".

func (ActivityStreamsStreamsPropertyIterator) Next

Next returns the next iterator, or nil if there is no next iterator.

func (ActivityStreamsStreamsPropertyIterator) Prev

Prev returns the previous iterator, or nil if there is no previous iterator.

func (*ActivityStreamsStreamsPropertyIterator) SetActivityStreamsCollection

func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection)

SetActivityStreamsCollection sets the value of this property. Calling IsActivityStreamsCollection afterwards returns true.

func (*ActivityStreamsStreamsPropertyIterator) SetActivityStreamsCollectionPage

func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage)

SetActivityStreamsCollectionPage sets the value of this property. Calling IsActivityStreamsCollectionPage afterwards returns true.

func (*ActivityStreamsStreamsPropertyIterator) SetActivityStreamsOrderedCollection

func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection)

SetActivityStreamsOrderedCollection sets the value of this property. Calling IsActivityStreamsOrderedCollection afterwards returns true.

func (*ActivityStreamsStreamsPropertyIterator) SetActivityStreamsOrderedCollectionPage

func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage)

SetActivityStreamsOrderedCollectionPage sets the value of this property. Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.

func (*ActivityStreamsStreamsPropertyIterator) SetIRI

SetIRI sets the value of this property. Calling IsIRI afterwards returns true.

func (*ActivityStreamsStreamsPropertyIterator) SetType

SetType attempts to set the property for the arbitrary type. Returns an error if it is not a valid type to set on this property.

Jump to

Keyboard shortcuts

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