[chore] github.com/superseriousbusiness/activity -> codeberg.org/superseriousbusiness/activity (#3853)

This commit is contained in:
tobi 2025-03-02 12:48:00 +01:00 committed by GitHub
commit e2e185d10b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
801 changed files with 4225 additions and 4026 deletions

View file

@ -0,0 +1,61 @@
// Code generated by astool. DO NOT EDIT.
// Package vocab contains the interfaces for the JSONLD vocabulary. All
// applications are strongly encouraged to use these interface types instead
// of the concrete definitions contained in the implementation subpackage.
// These 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.
//
// Type interfaces contain "Get" and "Set" methods for its properties. Types
// also have a "Serialize" method to convert the type into an interface map
// for use with the json package. There is a convenience "IsExtending" method
// on each types which helps with the ActivityStreams hierarchy, which is not
// the same as object oriented inheritance. While types also have a "LessThan"
// method, it is an arbitrary sort. Do not use it if needing to sort on
// specific properties, such as publish time. It is best used for normalizing
// the type. Lastly, do not use the "GetUnknownProperties" method in an
// application. Instead, use the go-fed tool to code generate the property
// needed.
//
// Properties come in two flavors: functional and non-functional. Functional
// means that a property can have at most one value, while non-functional
// means a property could have zero, one, or more values. Any property value
// may also be an IRI, in which case the application will need to make a HTTP
// request to fetch the property value.
//
// Functional properties have "Get", "Is", and "Set" methods for determining
// what kind of value the property is, fetching that value, or setting that
// value. There is also a "Serialize" method which converts the property into
// an interface type, but applications should not typically use a property's
// "Serialize" and instead should use a type's "Serialize" instead. Like
// types, properties have an arbitrary "LessThan" comparison function that
// should not be used if needing to sort on specific values. Finally,
// applications should not use the "KindIndex" method as it is a comparison
// mechanism only for those looking to write an alternate implementation.
//
// Non-functional properties can have more than one value, so it has "Len"
// for getting its length, "At" for getting an iterator pointing to an
// element, "Append" and "Prepend" for adding values, "Remove" for removing a
// value, "Set" for overwriting a value, and "Swap" for swapping two values'
// indices. Note that a non-functional property satisfies the sort interface,
// but it results in an arbitrary but stable ordering best used as a
// normalized form. A non-functional property's iterator looks like a
// functional property with "Next" and "Previous" methods. Applications should
// not use the "KindIndex" methods as it is a comparison mechanism only for
// those looking to write an alternate implementation of this library.
//
// Types and properties have a "JSONLDContext" method that returns a mapping
// of vocabulary URIs to aliases that are required in the JSON-LD @context
// when serializing this value. The aliases used by this library when
// serializing objects is done at code-generation time, unless a different
// alias was used to deserialize the type or property.
//
// Types, functional properties, and non-functional properties are not
// designed for concurrent usage by two or more goroutines. Also, certain
// methods on a non-functional property will invalidate iterators and possibly
// cause unexpected behaviors. To avoid this, re-obtain an iterator after
// modifying a non-functional property.
package vocab

View file

@ -0,0 +1,23 @@
// Code generated by astool. DO NOT EDIT.
package vocab
// Type represents an ActivityStreams type.
type Type interface {
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
GetJSONLDId() JSONLDIdProperty
// GetTypeName returns the ActivityStreams type name.
GetTypeName() string
// JSONLDContext returns the JSONLD URIs required in the context string
// for this property and the specific values that are set. The value
// in the map is the alias used to import the property's value or
// values.
JSONLDContext() map[string]string
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format.
Serialize() (map[string]interface{}, error)
// SetJSONLDId sets the "id" property.
SetJSONLDId(JSONLDIdProperty)
// VocabularyURI returns the vocabulary's URI as a string.
VocabularyURI() string
}

View file

@ -0,0 +1,63 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Indicates the accuracy of position coordinates on a Place objects. Expressed in
// properties of percentage. e.g. "94.0" means "94.0% accurate".
//
// Example 112 (https://www.w3.org/TR/activitystreams-vocabulary/#ex127-jsonld):
//
// {
// "accuracy": 94.5,
// "latitude": 36.75,
// "longitude": 119.7667,
// "name": "Liu Gu Lu Cun, Pingdu, Qingdao, Shandong, China",
// "type": "Place"
// }
type ActivityStreamsAccuracyProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaFloat afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaFloat returns
// false, Get will return any arbitrary value.
Get() float64
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaFloat returns true if this property is set and not an IRI.
IsXMLSchemaFloat() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsAccuracyProperty) bool
// Name returns the name of this property: "accuracy".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaFloat
// afterwards will return true.
Set(v float64)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,131 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsAlsoKnownAsPropertyIterator represents a single value for the
// "alsoKnownAs" property.
type ActivityStreamsAlsoKnownAsPropertyIterator interface {
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
// false, Get will return any arbitrary value.
Get() *url.URL
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
IsXMLSchemaAnyURI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsAlsoKnownAsPropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsAlsoKnownAs".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsAlsoKnownAsPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsAlsoKnownAsPropertyIterator
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
// afterwards will return true.
Set(v *url.URL)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}
// List of other URIs/AP IDs by which this actor is also known (eg., URIs of 'alt'
// account, previous account, new account, etc).
type ActivityStreamsAlsoKnownAsProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "alsoKnownAs"
AppendIRI(v *url.URL)
// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of
// the property "alsoKnownAs". Invalidates iterators that are
// traversing using Prev.
AppendXMLSchemaAnyURI(v *url.URL)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsAlsoKnownAsPropertyIterator
// 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.
Begin() ActivityStreamsAlsoKnownAsPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsAlsoKnownAsPropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "alsoKnownAs". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for
// a property "alsoKnownAs". Existing elements at that index and
// higher are shifted back once. Invalidates all iterators.
InsertXMLSchemaAnyURI(idx int, v *url.URL)
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "alsoKnownAs"
// property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsAlsoKnownAsProperty) bool
// Name returns the name of this property ("alsoKnownAs") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "alsoKnownAs".
PrependIRI(v *url.URL)
// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list
// of the property "alsoKnownAs". Invalidates all iterators.
PrependXMLSchemaAnyURI(v *url.URL)
// Remove deletes an element at the specified index from a list of the
// property "alsoKnownAs", regardless of its type. Panics if the index
// is out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a anyURI value to be at the specified index for the property
// "alsoKnownAs". Panics if the index is out of bounds. Invalidates
// all iterators.
Set(idx int, v *url.URL)
// SetIRI sets an IRI value to be at the specified index for the property
// "alsoKnownAs". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// Swap swaps the location of values at two indices for the "alsoKnownAs"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,65 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Indicates the altitude of a place. The measurement units is indicated using the
// units property. If units is not specified, the default is assumed to be "m"
// indicating meters.
//
// Example 113 (https://www.w3.org/TR/activitystreams-vocabulary/#ex129-jsonld):
//
// {
// "altitude": 15,
// "latitude": 36.75,
// "longitude": 119.7667,
// "name": "Fresno Area",
// "type": "Place",
// "units": "miles"
// }
type ActivityStreamsAltitudeProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaFloat afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaFloat returns
// false, Get will return any arbitrary value.
Get() float64
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaFloat returns true if this property is set and not an IRI.
IsXMLSchemaFloat() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsAltitudeProperty) bool
// Name returns the name of this property: "altitude".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaFloat
// afterwards will return true.
Set(v float64)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,211 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsContentPropertyIterator represents a single value for the
// "content" property.
type ActivityStreamsContentPropertyIterator interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetLanguage returns the value for the specified BCP47 language code, or
// an empty string if it is either not a language map or no value is
// present.
GetLanguage(bcp47 string) string
// GetRDFLangString returns the value of this property. When
// IsRDFLangString returns false, GetRDFLangString will return an
// arbitrary value.
GetRDFLangString() map[string]string
// GetXMLSchemaString returns the value of this property. When
// IsXMLSchemaString returns false, GetXMLSchemaString will return an
// arbitrary value.
GetXMLSchemaString() string
// HasAny returns true if any of the values are set, except for the
// natural language map. When true, the specific has, getter, and
// setter methods may be used to determine what kind of value there is
// to access and set this property. To determine if the property was
// set as a natural language map, use the IsRDFLangString method
// instead.
HasAny() bool
// HasLanguage returns true if the natural language map has an entry for
// the specified BCP47 language code.
HasLanguage(bcp47 string) bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsRDFLangString returns true if this property has a type of
// "langString". When true, use the GetRDFLangString and
// SetRDFLangString methods to access and set this property.. To
// determine if the property was set as a natural language map, use
// the IsRDFLangString method instead.
IsRDFLangString() bool
// IsXMLSchemaString returns true if this property has a type of "string".
// When true, use the GetXMLSchemaString and SetXMLSchemaString
// methods to access and set this property.. To determine if the
// property was set as a natural language map, use the IsRDFLangString
// method instead.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsContentPropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsContent".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsContentPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsContentPropertyIterator
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetLanguage sets the value for the specified BCP47 language code.
SetLanguage(bcp47, value string)
// SetRDFLangString sets the value of this property and clears the natural
// language map. Calling IsRDFLangString afterwards will return true.
// Calling IsRDFLangString afterwards returns false.
SetRDFLangString(v map[string]string)
// SetXMLSchemaString sets the value of this property and clears the
// natural language map. Calling IsXMLSchemaString afterwards will
// return true. Calling IsRDFLangString afterwards returns false.
SetXMLSchemaString(v string)
}
// The content or textual representation of the Object encoded as a JSON string.
// By default, the value of content is HTML. The mediaType property can be
// used in the object to indicate a different content type. The content MAY be
// expressed using multiple language-tagged values.
//
// Example 114 (https://www.w3.org/TR/activitystreams-vocabulary/#ex130-jsonld):
//
// {
// "content": "A \u003cem\u003esimple\u003c/em\u003e note",
// "summary": "A simple note",
// "type": "Note"
// }
//
// Example 115 (https://www.w3.org/TR/activitystreams-vocabulary/#ex131-jsonld):
//
// {
// "contentMap": {
// "en": "A \u003cem\u003esimple\u003c/em\u003e note",
// "es": "Una nota \u003cem\u003esencilla\u003c/em\u003e",
// "zh-hans": "一段\u003cem\u003e简单的\u003c/em\u003e笔记"
// },
// "summary": "A simple note",
// "type": "Note"
// }
//
// Example 116 (https://www.w3.org/TR/activitystreams-vocabulary/#ex130b-jsonld):
//
// {
// "content": "## A simple note\nA simple markdown `note`",
// "mediaType": "text/markdown",
// "summary": "A simple note",
// "type": "Note"
// }
type ActivityStreamsContentProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "content"
AppendIRI(v *url.URL)
// AppendRDFLangString appends a langString value to the back of a list of
// the property "content". Invalidates iterators that are traversing
// using Prev.
AppendRDFLangString(v map[string]string)
// AppendXMLSchemaString appends a string value to the back of a list of
// the property "content". Invalidates iterators that are traversing
// using Prev.
AppendXMLSchemaString(v string)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsContentPropertyIterator
// 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.
Begin() ActivityStreamsContentPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsContentPropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "content". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertRDFLangString inserts a langString value at the specified index
// for a property "content". Existing elements at that index and
// higher are shifted back once. Invalidates all iterators.
InsertRDFLangString(idx int, v map[string]string)
// InsertXMLSchemaString inserts a string value at the specified index for
// a property "content". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertXMLSchemaString(idx int, v 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "content" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsContentProperty) bool
// Name returns the name of this property ("content") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "content".
PrependIRI(v *url.URL)
// PrependRDFLangString prepends a langString value to the front of a list
// of the property "content". Invalidates all iterators.
PrependRDFLangString(v map[string]string)
// PrependXMLSchemaString prepends a string value to the front of a list
// of the property "content". Invalidates all iterators.
PrependXMLSchemaString(v string)
// Remove deletes an element at the specified index from a list of the
// property "content", regardless of its type. Panics if the index is
// out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// SetIRI sets an IRI value to be at the specified index for the property
// "content". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetRDFLangString sets a langString value to be at the specified index
// for the property "content". Panics if the index is out of bounds.
// Invalidates all iterators.
SetRDFLangString(idx int, v map[string]string)
// SetXMLSchemaString sets a string value to be at the specified index for
// the property "content". Panics if the index is out of bounds.
// Invalidates all iterators.
SetXMLSchemaString(idx int, v string)
// Swap swaps the location of values at two indices for the "content"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,145 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// In a paged Collection, indicates the page that contains the most recently
// updated member items.
//
// Example 74 (https://www.w3.org/TR/activitystreams-vocabulary/#ex71-jsonld):
//
// {
// "current": "http://example.org/collection",
// "items": [
// "http://example.org/posts/1",
// "http://example.org/posts/2",
// "http://example.org/posts/3"
// ],
// "summary": "Sally's blog posts",
// "totalItems": 3,
// "type": "Collection"
// }
//
// Example 75 (https://www.w3.org/TR/activitystreams-vocabulary/#ex72-jsonld):
//
// {
// "current": {
// "summary": "Most Recent Items",
// "type": "owl:Class",
// "url": "http://example.org/collection"
// },
// "items": [
// "http://example.org/posts/1",
// "http://example.org/posts/2",
// "http://example.org/posts/3"
// ],
// "summary": "Sally's blog posts",
// "totalItems": 3,
// "type": "Collection"
// }
type ActivityStreamsCurrentProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollectionPage() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsCurrentProperty) bool
// Name returns the name of this property: "current".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,64 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import (
"net/url"
"time"
)
// On a Tombstone object, the deleted property is a timestamp for when the object
// was deleted.
//
// Example 143 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185c-jsonld):
//
// {
// "deleted": "2016-05-03T00:00:00Z",
// "summary": "This image has been deleted",
// "type": "Tombstone"
// }
type ActivityStreamsDeletedProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaDateTime afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaDateTime
// returns false, Get will return any arbitrary value.
Get() time.Time
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaDateTime returns true if this property is set and not an IRI.
IsXMLSchemaDateTime() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsDeletedProperty) bool
// Name returns the name of this property: "deleted".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaDateTime
// afterwards will return true.
Set(v time.Time)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,723 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// On a Profile object, the describes property identifies the object described by
// the Profile.
//
// Example 141 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185-jsonld):
//
// {
// "describes": {
// "name": "Sally",
// "type": "Person"
// },
// "summary": "Sally's profile",
// "type": "Profile",
// "url": "http://sally.example.org"
// }
type ActivityStreamsDescribesProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsAccept returns the value of this property. When
// IsActivityStreamsAccept returns false, GetActivityStreamsAccept
// will return an arbitrary value.
GetActivityStreamsAccept() ActivityStreamsAccept
// GetActivityStreamsActivity returns the value of this property. When
// IsActivityStreamsActivity returns false, GetActivityStreamsActivity
// will return an arbitrary value.
GetActivityStreamsActivity() ActivityStreamsActivity
// GetActivityStreamsAdd returns the value of this property. When
// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will
// return an arbitrary value.
GetActivityStreamsAdd() ActivityStreamsAdd
// GetActivityStreamsAnnounce returns the value of this property. When
// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce
// will return an arbitrary value.
GetActivityStreamsAnnounce() ActivityStreamsAnnounce
// GetActivityStreamsApplication returns the value of this property. When
// IsActivityStreamsApplication returns false,
// GetActivityStreamsApplication will return an arbitrary value.
GetActivityStreamsApplication() ActivityStreamsApplication
// GetActivityStreamsArrive returns the value of this property. When
// IsActivityStreamsArrive returns false, GetActivityStreamsArrive
// will return an arbitrary value.
GetActivityStreamsArrive() ActivityStreamsArrive
// GetActivityStreamsArticle returns the value of this property. When
// IsActivityStreamsArticle returns false, GetActivityStreamsArticle
// will return an arbitrary value.
GetActivityStreamsArticle() ActivityStreamsArticle
// GetActivityStreamsAudio returns the value of this property. When
// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will
// return an arbitrary value.
GetActivityStreamsAudio() ActivityStreamsAudio
// GetActivityStreamsBlock returns the value of this property. When
// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will
// return an arbitrary value.
GetActivityStreamsBlock() ActivityStreamsBlock
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsCreate returns the value of this property. When
// IsActivityStreamsCreate returns false, GetActivityStreamsCreate
// will return an arbitrary value.
GetActivityStreamsCreate() ActivityStreamsCreate
// GetActivityStreamsDelete returns the value of this property. When
// IsActivityStreamsDelete returns false, GetActivityStreamsDelete
// will return an arbitrary value.
GetActivityStreamsDelete() ActivityStreamsDelete
// GetActivityStreamsDislike returns the value of this property. When
// IsActivityStreamsDislike returns false, GetActivityStreamsDislike
// will return an arbitrary value.
GetActivityStreamsDislike() ActivityStreamsDislike
// GetActivityStreamsDocument returns the value of this property. When
// IsActivityStreamsDocument returns false, GetActivityStreamsDocument
// will return an arbitrary value.
GetActivityStreamsDocument() ActivityStreamsDocument
// GetActivityStreamsEvent returns the value of this property. When
// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will
// return an arbitrary value.
GetActivityStreamsEvent() ActivityStreamsEvent
// GetActivityStreamsFlag returns the value of this property. When
// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will
// return an arbitrary value.
GetActivityStreamsFlag() ActivityStreamsFlag
// GetActivityStreamsFollow returns the value of this property. When
// IsActivityStreamsFollow returns false, GetActivityStreamsFollow
// will return an arbitrary value.
GetActivityStreamsFollow() ActivityStreamsFollow
// GetActivityStreamsGroup returns the value of this property. When
// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will
// return an arbitrary value.
GetActivityStreamsGroup() ActivityStreamsGroup
// GetActivityStreamsIgnore returns the value of this property. When
// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore
// will return an arbitrary value.
GetActivityStreamsIgnore() ActivityStreamsIgnore
// GetActivityStreamsImage returns the value of this property. When
// IsActivityStreamsImage returns false, GetActivityStreamsImage will
// return an arbitrary value.
GetActivityStreamsImage() ActivityStreamsImage
// GetActivityStreamsIntransitiveActivity returns the value of this
// property. When IsActivityStreamsIntransitiveActivity returns false,
// GetActivityStreamsIntransitiveActivity will return an arbitrary
// value.
GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity
// GetActivityStreamsInvite returns the value of this property. When
// IsActivityStreamsInvite returns false, GetActivityStreamsInvite
// will return an arbitrary value.
GetActivityStreamsInvite() ActivityStreamsInvite
// GetActivityStreamsJoin returns the value of this property. When
// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will
// return an arbitrary value.
GetActivityStreamsJoin() ActivityStreamsJoin
// GetActivityStreamsLeave returns the value of this property. When
// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will
// return an arbitrary value.
GetActivityStreamsLeave() ActivityStreamsLeave
// GetActivityStreamsLike returns the value of this property. When
// IsActivityStreamsLike returns false, GetActivityStreamsLike will
// return an arbitrary value.
GetActivityStreamsLike() ActivityStreamsLike
// GetActivityStreamsListen returns the value of this property. When
// IsActivityStreamsListen returns false, GetActivityStreamsListen
// will return an arbitrary value.
GetActivityStreamsListen() ActivityStreamsListen
// GetActivityStreamsMove returns the value of this property. When
// IsActivityStreamsMove returns false, GetActivityStreamsMove will
// return an arbitrary value.
GetActivityStreamsMove() ActivityStreamsMove
// GetActivityStreamsNote returns the value of this property. When
// IsActivityStreamsNote returns false, GetActivityStreamsNote will
// return an arbitrary value.
GetActivityStreamsNote() ActivityStreamsNote
// GetActivityStreamsObject returns the value of this property. When
// IsActivityStreamsObject returns false, GetActivityStreamsObject
// will return an arbitrary value.
GetActivityStreamsObject() ActivityStreamsObject
// GetActivityStreamsOffer returns the value of this property. When
// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will
// return an arbitrary value.
GetActivityStreamsOffer() ActivityStreamsOffer
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetActivityStreamsOrganization returns the value of this property. When
// IsActivityStreamsOrganization returns false,
// GetActivityStreamsOrganization will return an arbitrary value.
GetActivityStreamsOrganization() ActivityStreamsOrganization
// GetActivityStreamsPage returns the value of this property. When
// IsActivityStreamsPage returns false, GetActivityStreamsPage will
// return an arbitrary value.
GetActivityStreamsPage() ActivityStreamsPage
// GetActivityStreamsPerson returns the value of this property. When
// IsActivityStreamsPerson returns false, GetActivityStreamsPerson
// will return an arbitrary value.
GetActivityStreamsPerson() ActivityStreamsPerson
// GetActivityStreamsPlace returns the value of this property. When
// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will
// return an arbitrary value.
GetActivityStreamsPlace() ActivityStreamsPlace
// GetActivityStreamsProfile returns the value of this property. When
// IsActivityStreamsProfile returns false, GetActivityStreamsProfile
// will return an arbitrary value.
GetActivityStreamsProfile() ActivityStreamsProfile
// GetActivityStreamsQuestion returns the value of this property. When
// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion
// will return an arbitrary value.
GetActivityStreamsQuestion() ActivityStreamsQuestion
// GetActivityStreamsRead returns the value of this property. When
// IsActivityStreamsRead returns false, GetActivityStreamsRead will
// return an arbitrary value.
GetActivityStreamsRead() ActivityStreamsRead
// GetActivityStreamsReject returns the value of this property. When
// IsActivityStreamsReject returns false, GetActivityStreamsReject
// will return an arbitrary value.
GetActivityStreamsReject() ActivityStreamsReject
// GetActivityStreamsRelationship returns the value of this property. When
// IsActivityStreamsRelationship returns false,
// GetActivityStreamsRelationship will return an arbitrary value.
GetActivityStreamsRelationship() ActivityStreamsRelationship
// GetActivityStreamsRemove returns the value of this property. When
// IsActivityStreamsRemove returns false, GetActivityStreamsRemove
// will return an arbitrary value.
GetActivityStreamsRemove() ActivityStreamsRemove
// GetActivityStreamsService returns the value of this property. When
// IsActivityStreamsService returns false, GetActivityStreamsService
// will return an arbitrary value.
GetActivityStreamsService() ActivityStreamsService
// GetActivityStreamsTentativeAccept returns the value of this property.
// When IsActivityStreamsTentativeAccept returns false,
// GetActivityStreamsTentativeAccept will return an arbitrary value.
GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept
// GetActivityStreamsTentativeReject returns the value of this property.
// When IsActivityStreamsTentativeReject returns false,
// GetActivityStreamsTentativeReject will return an arbitrary value.
GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject
// GetActivityStreamsTombstone returns the value of this property. When
// IsActivityStreamsTombstone returns false,
// GetActivityStreamsTombstone will return an arbitrary value.
GetActivityStreamsTombstone() ActivityStreamsTombstone
// GetActivityStreamsTravel returns the value of this property. When
// IsActivityStreamsTravel returns false, GetActivityStreamsTravel
// will return an arbitrary value.
GetActivityStreamsTravel() ActivityStreamsTravel
// GetActivityStreamsUndo returns the value of this property. When
// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will
// return an arbitrary value.
GetActivityStreamsUndo() ActivityStreamsUndo
// GetActivityStreamsUpdate returns the value of this property. When
// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate
// will return an arbitrary value.
GetActivityStreamsUpdate() ActivityStreamsUpdate
// GetActivityStreamsVideo returns the value of this property. When
// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will
// return an arbitrary value.
GetActivityStreamsVideo() ActivityStreamsVideo
// GetActivityStreamsView returns the value of this property. When
// IsActivityStreamsView returns false, GetActivityStreamsView will
// return an arbitrary value.
GetActivityStreamsView() ActivityStreamsView
// GetGoToSocialAnnounceApproval returns the value of this property. When
// IsGoToSocialAnnounceApproval returns false,
// GetGoToSocialAnnounceApproval will return an arbitrary value.
GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval
// GetGoToSocialLikeApproval returns the value of this property. When
// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval
// will return an arbitrary value.
GetGoToSocialLikeApproval() GoToSocialLikeApproval
// GetGoToSocialReplyApproval returns the value of this property. When
// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval
// will return an arbitrary value.
GetGoToSocialReplyApproval() GoToSocialReplyApproval
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
// return an arbitrary value.
GetSchemaPropertyValue() SchemaPropertyValue
// GetTootEmoji returns the value of this property. When IsTootEmoji
// returns false, GetTootEmoji will return an arbitrary value.
GetTootEmoji() TootEmoji
// GetTootIdentityProof returns the value of this property. When
// IsTootIdentityProof returns false, GetTootIdentityProof will return
// an arbitrary value.
GetTootIdentityProof() TootIdentityProof
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() bool
// IsActivityStreamsAccept returns true if this property has a type of
// "Accept". When true, use the GetActivityStreamsAccept and
// SetActivityStreamsAccept methods to access and set this property.
IsActivityStreamsAccept() bool
// IsActivityStreamsActivity returns true if this property has a type of
// "Activity". When true, use the GetActivityStreamsActivity and
// SetActivityStreamsActivity methods to access and set this property.
IsActivityStreamsActivity() bool
// IsActivityStreamsAdd returns true if this property has a type of "Add".
// When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd
// methods to access and set this property.
IsActivityStreamsAdd() bool
// IsActivityStreamsAnnounce returns true if this property has a type of
// "Announce". When true, use the GetActivityStreamsAnnounce and
// SetActivityStreamsAnnounce methods to access and set this property.
IsActivityStreamsAnnounce() bool
// IsActivityStreamsApplication returns true if this property has a type
// of "Application". When true, use the GetActivityStreamsApplication
// and SetActivityStreamsApplication methods to access and set this
// property.
IsActivityStreamsApplication() bool
// IsActivityStreamsArrive returns true if this property has a type of
// "Arrive". When true, use the GetActivityStreamsArrive and
// SetActivityStreamsArrive methods to access and set this property.
IsActivityStreamsArrive() bool
// IsActivityStreamsArticle returns true if this property has a type of
// "Article". When true, use the GetActivityStreamsArticle and
// SetActivityStreamsArticle methods to access and set this property.
IsActivityStreamsArticle() bool
// IsActivityStreamsAudio returns true if this property has a type of
// "Audio". When true, use the GetActivityStreamsAudio and
// SetActivityStreamsAudio methods to access and set this property.
IsActivityStreamsAudio() bool
// IsActivityStreamsBlock returns true if this property has a type of
// "Block". When true, use the GetActivityStreamsBlock and
// SetActivityStreamsBlock methods to access and set this property.
IsActivityStreamsBlock() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() bool
// IsActivityStreamsCreate returns true if this property has a type of
// "Create". When true, use the GetActivityStreamsCreate and
// SetActivityStreamsCreate methods to access and set this property.
IsActivityStreamsCreate() bool
// IsActivityStreamsDelete returns true if this property has a type of
// "Delete". When true, use the GetActivityStreamsDelete and
// SetActivityStreamsDelete methods to access and set this property.
IsActivityStreamsDelete() bool
// IsActivityStreamsDislike returns true if this property has a type of
// "Dislike". When true, use the GetActivityStreamsDislike and
// SetActivityStreamsDislike methods to access and set this property.
IsActivityStreamsDislike() bool
// IsActivityStreamsDocument returns true if this property has a type of
// "Document". When true, use the GetActivityStreamsDocument and
// SetActivityStreamsDocument methods to access and set this property.
IsActivityStreamsDocument() bool
// IsActivityStreamsEvent returns true if this property has a type of
// "Event". When true, use the GetActivityStreamsEvent and
// SetActivityStreamsEvent methods to access and set this property.
IsActivityStreamsEvent() bool
// IsActivityStreamsFlag returns true if this property has a type of
// "Flag". When true, use the GetActivityStreamsFlag and
// SetActivityStreamsFlag methods to access and set this property.
IsActivityStreamsFlag() bool
// IsActivityStreamsFollow returns true if this property has a type of
// "Follow". When true, use the GetActivityStreamsFollow and
// SetActivityStreamsFollow methods to access and set this property.
IsActivityStreamsFollow() bool
// IsActivityStreamsGroup returns true if this property has a type of
// "Group". When true, use the GetActivityStreamsGroup and
// SetActivityStreamsGroup methods to access and set this property.
IsActivityStreamsGroup() bool
// IsActivityStreamsIgnore returns true if this property has a type of
// "Ignore". When true, use the GetActivityStreamsIgnore and
// SetActivityStreamsIgnore methods to access and set this property.
IsActivityStreamsIgnore() bool
// IsActivityStreamsImage returns true if this property has a type of
// "Image". When true, use the GetActivityStreamsImage and
// SetActivityStreamsImage methods to access and set this property.
IsActivityStreamsImage() bool
// IsActivityStreamsIntransitiveActivity returns true if this property has
// a type of "IntransitiveActivity". When true, use the
// GetActivityStreamsIntransitiveActivity and
// SetActivityStreamsIntransitiveActivity methods to access and set
// this property.
IsActivityStreamsIntransitiveActivity() bool
// IsActivityStreamsInvite returns true if this property has a type of
// "Invite". When true, use the GetActivityStreamsInvite and
// SetActivityStreamsInvite methods to access and set this property.
IsActivityStreamsInvite() bool
// IsActivityStreamsJoin returns true if this property has a type of
// "Join". When true, use the GetActivityStreamsJoin and
// SetActivityStreamsJoin methods to access and set this property.
IsActivityStreamsJoin() bool
// IsActivityStreamsLeave returns true if this property has a type of
// "Leave". When true, use the GetActivityStreamsLeave and
// SetActivityStreamsLeave methods to access and set this property.
IsActivityStreamsLeave() bool
// IsActivityStreamsLike returns true if this property has a type of
// "Like". When true, use the GetActivityStreamsLike and
// SetActivityStreamsLike methods to access and set this property.
IsActivityStreamsLike() bool
// IsActivityStreamsListen returns true if this property has a type of
// "Listen". When true, use the GetActivityStreamsListen and
// SetActivityStreamsListen methods to access and set this property.
IsActivityStreamsListen() bool
// IsActivityStreamsMove returns true if this property has a type of
// "Move". When true, use the GetActivityStreamsMove and
// SetActivityStreamsMove methods to access and set this property.
IsActivityStreamsMove() bool
// IsActivityStreamsNote returns true if this property has a type of
// "Note". When true, use the GetActivityStreamsNote and
// SetActivityStreamsNote methods to access and set this property.
IsActivityStreamsNote() bool
// IsActivityStreamsObject returns true if this property has a type of
// "Object". When true, use the GetActivityStreamsObject and
// SetActivityStreamsObject methods to access and set this property.
IsActivityStreamsObject() bool
// IsActivityStreamsOffer returns true if this property has a type of
// "Offer". When true, use the GetActivityStreamsOffer and
// SetActivityStreamsOffer methods to access and set this property.
IsActivityStreamsOffer() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsActivityStreamsOrganization returns true if this property has a type
// of "Organization". When true, use the
// GetActivityStreamsOrganization and SetActivityStreamsOrganization
// methods to access and set this property.
IsActivityStreamsOrganization() bool
// IsActivityStreamsPage returns true if this property has a type of
// "Page". When true, use the GetActivityStreamsPage and
// SetActivityStreamsPage methods to access and set this property.
IsActivityStreamsPage() bool
// IsActivityStreamsPerson returns true if this property has a type of
// "Person". When true, use the GetActivityStreamsPerson and
// SetActivityStreamsPerson methods to access and set this property.
IsActivityStreamsPerson() bool
// IsActivityStreamsPlace returns true if this property has a type of
// "Place". When true, use the GetActivityStreamsPlace and
// SetActivityStreamsPlace methods to access and set this property.
IsActivityStreamsPlace() bool
// IsActivityStreamsProfile returns true if this property has a type of
// "Profile". When true, use the GetActivityStreamsProfile and
// SetActivityStreamsProfile methods to access and set this property.
IsActivityStreamsProfile() bool
// IsActivityStreamsQuestion returns true if this property has a type of
// "Question". When true, use the GetActivityStreamsQuestion and
// SetActivityStreamsQuestion methods to access and set this property.
IsActivityStreamsQuestion() bool
// IsActivityStreamsRead returns true if this property has a type of
// "Read". When true, use the GetActivityStreamsRead and
// SetActivityStreamsRead methods to access and set this property.
IsActivityStreamsRead() bool
// IsActivityStreamsReject returns true if this property has a type of
// "Reject". When true, use the GetActivityStreamsReject and
// SetActivityStreamsReject methods to access and set this property.
IsActivityStreamsReject() bool
// IsActivityStreamsRelationship returns true if this property has a type
// of "Relationship". When true, use the
// GetActivityStreamsRelationship and SetActivityStreamsRelationship
// methods to access and set this property.
IsActivityStreamsRelationship() bool
// IsActivityStreamsRemove returns true if this property has a type of
// "Remove". When true, use the GetActivityStreamsRemove and
// SetActivityStreamsRemove methods to access and set this property.
IsActivityStreamsRemove() bool
// IsActivityStreamsService returns true if this property has a type of
// "Service". When true, use the GetActivityStreamsService and
// SetActivityStreamsService methods to access and set this property.
IsActivityStreamsService() bool
// IsActivityStreamsTentativeAccept returns true if this property has a
// type of "TentativeAccept". When true, use the
// GetActivityStreamsTentativeAccept and
// SetActivityStreamsTentativeAccept methods to access and set this
// property.
IsActivityStreamsTentativeAccept() bool
// IsActivityStreamsTentativeReject returns true if this property has a
// type of "TentativeReject". When true, use the
// GetActivityStreamsTentativeReject and
// SetActivityStreamsTentativeReject methods to access and set this
// property.
IsActivityStreamsTentativeReject() bool
// IsActivityStreamsTombstone returns true if this property has a type of
// "Tombstone". When true, use the GetActivityStreamsTombstone and
// SetActivityStreamsTombstone methods to access and set this property.
IsActivityStreamsTombstone() bool
// IsActivityStreamsTravel returns true if this property has a type of
// "Travel". When true, use the GetActivityStreamsTravel and
// SetActivityStreamsTravel methods to access and set this property.
IsActivityStreamsTravel() bool
// IsActivityStreamsUndo returns true if this property has a type of
// "Undo". When true, use the GetActivityStreamsUndo and
// SetActivityStreamsUndo methods to access and set this property.
IsActivityStreamsUndo() bool
// IsActivityStreamsUpdate returns true if this property has a type of
// "Update". When true, use the GetActivityStreamsUpdate and
// SetActivityStreamsUpdate methods to access and set this property.
IsActivityStreamsUpdate() bool
// IsActivityStreamsVideo returns true if this property has a type of
// "Video". When true, use the GetActivityStreamsVideo and
// SetActivityStreamsVideo methods to access and set this property.
IsActivityStreamsVideo() bool
// IsActivityStreamsView returns true if this property has a type of
// "View". When true, use the GetActivityStreamsView and
// SetActivityStreamsView methods to access and set this property.
IsActivityStreamsView() bool
// IsGoToSocialAnnounceApproval returns true if this property has a type
// of "AnnounceApproval". When true, use the
// GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval
// methods to access and set this property.
IsGoToSocialAnnounceApproval() bool
// IsGoToSocialLikeApproval returns true if this property has a type of
// "LikeApproval". When true, use the GetGoToSocialLikeApproval and
// SetGoToSocialLikeApproval methods to access and set this property.
IsGoToSocialLikeApproval() bool
// IsGoToSocialReplyApproval returns true if this property has a type of
// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and
// SetGoToSocialReplyApproval methods to access and set this property.
IsGoToSocialReplyApproval() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
IsSchemaPropertyValue() bool
// IsTootEmoji returns true if this property has a type of "Emoji". When
// true, use the GetTootEmoji and SetTootEmoji methods to access and
// set this property.
IsTootEmoji() bool
// IsTootIdentityProof returns true if this property has a type of
// "IdentityProof". When true, use the GetTootIdentityProof and
// SetTootIdentityProof methods to access and set this property.
IsTootIdentityProof() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsDescribesProperty) bool
// Name returns the name of this property: "describes".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsAccept sets the value of this property. Calling
// IsActivityStreamsAccept afterwards returns true.
SetActivityStreamsAccept(v ActivityStreamsAccept)
// SetActivityStreamsActivity sets the value of this property. Calling
// IsActivityStreamsActivity afterwards returns true.
SetActivityStreamsActivity(v ActivityStreamsActivity)
// SetActivityStreamsAdd sets the value of this property. Calling
// IsActivityStreamsAdd afterwards returns true.
SetActivityStreamsAdd(v ActivityStreamsAdd)
// SetActivityStreamsAnnounce sets the value of this property. Calling
// IsActivityStreamsAnnounce afterwards returns true.
SetActivityStreamsAnnounce(v ActivityStreamsAnnounce)
// SetActivityStreamsApplication sets the value of this property. Calling
// IsActivityStreamsApplication afterwards returns true.
SetActivityStreamsApplication(v ActivityStreamsApplication)
// SetActivityStreamsArrive sets the value of this property. Calling
// IsActivityStreamsArrive afterwards returns true.
SetActivityStreamsArrive(v ActivityStreamsArrive)
// SetActivityStreamsArticle sets the value of this property. Calling
// IsActivityStreamsArticle afterwards returns true.
SetActivityStreamsArticle(v ActivityStreamsArticle)
// SetActivityStreamsAudio sets the value of this property. Calling
// IsActivityStreamsAudio afterwards returns true.
SetActivityStreamsAudio(v ActivityStreamsAudio)
// SetActivityStreamsBlock sets the value of this property. Calling
// IsActivityStreamsBlock afterwards returns true.
SetActivityStreamsBlock(v ActivityStreamsBlock)
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsCreate sets the value of this property. Calling
// IsActivityStreamsCreate afterwards returns true.
SetActivityStreamsCreate(v ActivityStreamsCreate)
// SetActivityStreamsDelete sets the value of this property. Calling
// IsActivityStreamsDelete afterwards returns true.
SetActivityStreamsDelete(v ActivityStreamsDelete)
// SetActivityStreamsDislike sets the value of this property. Calling
// IsActivityStreamsDislike afterwards returns true.
SetActivityStreamsDislike(v ActivityStreamsDislike)
// SetActivityStreamsDocument sets the value of this property. Calling
// IsActivityStreamsDocument afterwards returns true.
SetActivityStreamsDocument(v ActivityStreamsDocument)
// SetActivityStreamsEvent sets the value of this property. Calling
// IsActivityStreamsEvent afterwards returns true.
SetActivityStreamsEvent(v ActivityStreamsEvent)
// SetActivityStreamsFlag sets the value of this property. Calling
// IsActivityStreamsFlag afterwards returns true.
SetActivityStreamsFlag(v ActivityStreamsFlag)
// SetActivityStreamsFollow sets the value of this property. Calling
// IsActivityStreamsFollow afterwards returns true.
SetActivityStreamsFollow(v ActivityStreamsFollow)
// SetActivityStreamsGroup sets the value of this property. Calling
// IsActivityStreamsGroup afterwards returns true.
SetActivityStreamsGroup(v ActivityStreamsGroup)
// SetActivityStreamsIgnore sets the value of this property. Calling
// IsActivityStreamsIgnore afterwards returns true.
SetActivityStreamsIgnore(v ActivityStreamsIgnore)
// SetActivityStreamsImage sets the value of this property. Calling
// IsActivityStreamsImage afterwards returns true.
SetActivityStreamsImage(v ActivityStreamsImage)
// SetActivityStreamsIntransitiveActivity sets the value of this property.
// Calling IsActivityStreamsIntransitiveActivity afterwards returns
// true.
SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity)
// SetActivityStreamsInvite sets the value of this property. Calling
// IsActivityStreamsInvite afterwards returns true.
SetActivityStreamsInvite(v ActivityStreamsInvite)
// SetActivityStreamsJoin sets the value of this property. Calling
// IsActivityStreamsJoin afterwards returns true.
SetActivityStreamsJoin(v ActivityStreamsJoin)
// SetActivityStreamsLeave sets the value of this property. Calling
// IsActivityStreamsLeave afterwards returns true.
SetActivityStreamsLeave(v ActivityStreamsLeave)
// SetActivityStreamsLike sets the value of this property. Calling
// IsActivityStreamsLike afterwards returns true.
SetActivityStreamsLike(v ActivityStreamsLike)
// SetActivityStreamsListen sets the value of this property. Calling
// IsActivityStreamsListen afterwards returns true.
SetActivityStreamsListen(v ActivityStreamsListen)
// SetActivityStreamsMove sets the value of this property. Calling
// IsActivityStreamsMove afterwards returns true.
SetActivityStreamsMove(v ActivityStreamsMove)
// SetActivityStreamsNote sets the value of this property. Calling
// IsActivityStreamsNote afterwards returns true.
SetActivityStreamsNote(v ActivityStreamsNote)
// SetActivityStreamsObject sets the value of this property. Calling
// IsActivityStreamsObject afterwards returns true.
SetActivityStreamsObject(v ActivityStreamsObject)
// SetActivityStreamsOffer sets the value of this property. Calling
// IsActivityStreamsOffer afterwards returns true.
SetActivityStreamsOffer(v ActivityStreamsOffer)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetActivityStreamsOrganization sets the value of this property. Calling
// IsActivityStreamsOrganization afterwards returns true.
SetActivityStreamsOrganization(v ActivityStreamsOrganization)
// SetActivityStreamsPage sets the value of this property. Calling
// IsActivityStreamsPage afterwards returns true.
SetActivityStreamsPage(v ActivityStreamsPage)
// SetActivityStreamsPerson sets the value of this property. Calling
// IsActivityStreamsPerson afterwards returns true.
SetActivityStreamsPerson(v ActivityStreamsPerson)
// SetActivityStreamsPlace sets the value of this property. Calling
// IsActivityStreamsPlace afterwards returns true.
SetActivityStreamsPlace(v ActivityStreamsPlace)
// SetActivityStreamsProfile sets the value of this property. Calling
// IsActivityStreamsProfile afterwards returns true.
SetActivityStreamsProfile(v ActivityStreamsProfile)
// SetActivityStreamsQuestion sets the value of this property. Calling
// IsActivityStreamsQuestion afterwards returns true.
SetActivityStreamsQuestion(v ActivityStreamsQuestion)
// SetActivityStreamsRead sets the value of this property. Calling
// IsActivityStreamsRead afterwards returns true.
SetActivityStreamsRead(v ActivityStreamsRead)
// SetActivityStreamsReject sets the value of this property. Calling
// IsActivityStreamsReject afterwards returns true.
SetActivityStreamsReject(v ActivityStreamsReject)
// SetActivityStreamsRelationship sets the value of this property. Calling
// IsActivityStreamsRelationship afterwards returns true.
SetActivityStreamsRelationship(v ActivityStreamsRelationship)
// SetActivityStreamsRemove sets the value of this property. Calling
// IsActivityStreamsRemove afterwards returns true.
SetActivityStreamsRemove(v ActivityStreamsRemove)
// SetActivityStreamsService sets the value of this property. Calling
// IsActivityStreamsService afterwards returns true.
SetActivityStreamsService(v ActivityStreamsService)
// SetActivityStreamsTentativeAccept sets the value of this property.
// Calling IsActivityStreamsTentativeAccept afterwards returns true.
SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept)
// SetActivityStreamsTentativeReject sets the value of this property.
// Calling IsActivityStreamsTentativeReject afterwards returns true.
SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject)
// SetActivityStreamsTombstone sets the value of this property. Calling
// IsActivityStreamsTombstone afterwards returns true.
SetActivityStreamsTombstone(v ActivityStreamsTombstone)
// SetActivityStreamsTravel sets the value of this property. Calling
// IsActivityStreamsTravel afterwards returns true.
SetActivityStreamsTravel(v ActivityStreamsTravel)
// SetActivityStreamsUndo sets the value of this property. Calling
// IsActivityStreamsUndo afterwards returns true.
SetActivityStreamsUndo(v ActivityStreamsUndo)
// SetActivityStreamsUpdate sets the value of this property. Calling
// IsActivityStreamsUpdate afterwards returns true.
SetActivityStreamsUpdate(v ActivityStreamsUpdate)
// SetActivityStreamsVideo sets the value of this property. Calling
// IsActivityStreamsVideo afterwards returns true.
SetActivityStreamsVideo(v ActivityStreamsVideo)
// SetActivityStreamsView sets the value of this property. Calling
// IsActivityStreamsView afterwards returns true.
SetActivityStreamsView(v ActivityStreamsView)
// SetGoToSocialAnnounceApproval sets the value of this property. Calling
// IsGoToSocialAnnounceApproval afterwards returns true.
SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval)
// SetGoToSocialLikeApproval sets the value of this property. Calling
// IsGoToSocialLikeApproval afterwards returns true.
SetGoToSocialLikeApproval(v GoToSocialLikeApproval)
// SetGoToSocialReplyApproval sets the value of this property. Calling
// IsGoToSocialReplyApproval afterwards returns true.
SetGoToSocialReplyApproval(v GoToSocialReplyApproval)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
SetSchemaPropertyValue(v SchemaPropertyValue)
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
// afterwards returns true.
SetTootEmoji(v TootEmoji)
// SetTootIdentityProof sets the value of this property. Calling
// IsTootIdentityProof afterwards returns true.
SetTootIdentityProof(v TootIdentityProof)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,68 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import (
"net/url"
"time"
)
// When the object describes a time-bound resource, such as an audio or video, a
// meeting, etc, the duration property indicates the object's approximate
// duration. The value MUST be expressed as an xsd:duration as defined by
// [xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented
// as "PT5S").
//
// Example 119 (https://www.w3.org/TR/activitystreams-vocabulary/#ex134-jsonld):
//
// {
// "duration": "PT2H",
// "name": "Birds Flying",
// "type": "Video",
// "url": "http://example.org/video.mkv"
// }
type ActivityStreamsDurationProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaDuration afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaDuration
// returns false, Get will return any arbitrary value.
Get() time.Duration
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaDuration returns true if this property is set and not an IRI.
IsXMLSchemaDuration() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsDurationProperty) bool
// Name returns the name of this property: "duration".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaDuration
// afterwards will return true.
Set(v time.Duration)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,66 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import (
"net/url"
"time"
)
// The date and time describing the actual or expected ending time of the object.
// When used with an Activity object, for instance, the endTime property
// specifies the moment the activity concluded or is expected to conclude.
//
// Example 127 (https://www.w3.org/TR/activitystreams-vocabulary/#ex144-jsonld):
//
// {
// "endTime": "2015-01-01T06:00:00-08:00",
// "name": "Going-Away Party for Jim",
// "startTime": "2014-12-31T23:00:00-08:00",
// "type": "Event"
// }
type ActivityStreamsEndTimeProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaDateTime afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaDateTime
// returns false, Get will return any arbitrary value.
Get() time.Time
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaDateTime returns true if this property is set and not an IRI.
IsXMLSchemaDateTime() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsEndTimeProperty) bool
// Name returns the name of this property: "endTime".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaDateTime
// afterwards will return true.
Set(v time.Time)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,159 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsEndpointsPropertyIterator represents a single value for the
// "endpoints" property.
type ActivityStreamsEndpointsPropertyIterator interface {
// Get returns the value of this property. When IsActivityStreamsEndpoints
// returns false, Get will return any arbitrary value.
Get() ActivityStreamsEndpoints
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsActivityStreamsEndpoints returns true if this property is set and not
// an IRI.
IsActivityStreamsEndpoints() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsEndpointsPropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsEndpoints".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsEndpointsPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsEndpointsPropertyIterator
// Set sets the value of this property. Calling IsActivityStreamsEndpoints
// afterwards will return true.
Set(v ActivityStreamsEndpoints)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}
// Endpoints for an ActivityStreams actor.
//
// null
type ActivityStreamsEndpointsProperty interface {
// AppendActivityStreamsEndpoints appends a Endpoints value to the back of
// a list of the property "endpoints". Invalidates iterators that are
// traversing using Prev.
AppendActivityStreamsEndpoints(v ActivityStreamsEndpoints)
// AppendIRI appends an IRI value to the back of a list of the property
// "endpoints"
AppendIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "endpoints". Invalidates iterators that are traversing
// using Prev. Returns an error if the type is not a valid one to set
// for this property.
AppendType(t Type) error
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsEndpointsPropertyIterator
// 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.
Begin() ActivityStreamsEndpointsPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsEndpointsPropertyIterator
// InsertActivityStreamsEndpoints inserts a Endpoints value at the
// specified index for a property "endpoints". Existing elements at
// that index and higher are shifted back once. Invalidates all
// iterators.
InsertActivityStreamsEndpoints(idx int, v ActivityStreamsEndpoints)
// Insert inserts an IRI value at the specified index for a property
// "endpoints". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "endpoints". Invalidates all iterators. Returns an
// error if the type is not a valid one to set for this property.
InsertType(idx int, t Type) error
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "endpoints"
// property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsEndpointsProperty) bool
// Name returns the name of this property ("endpoints") with any alias.
Name() string
// PrependActivityStreamsEndpoints prepends a Endpoints value to the front
// of a list of the property "endpoints". Invalidates all iterators.
PrependActivityStreamsEndpoints(v ActivityStreamsEndpoints)
// PrependIRI prepends an IRI value to the front of a list of the property
// "endpoints".
PrependIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "endpoints". Invalidates all iterators. Returns an
// error if the type is not a valid one to set for this property.
PrependType(t Type) error
// Remove deletes an element at the specified index from a list of the
// property "endpoints", regardless of its type. Panics if the index
// is out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a Endpoints value to be at the specified index for the
// property "endpoints". Panics if the index is out of bounds.
// Invalidates all iterators.
Set(idx int, v ActivityStreamsEndpoints)
// SetIRI sets an IRI value to be at the specified index for the property
// "endpoints". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetType sets an arbitrary type value to the specified index of the
// property "endpoints". 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.
SetType(idx int, t Type) error
// Swap swaps the location of values at two indices for the "endpoints"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,135 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// In a paged Collection, indicates the furthest preceeding page of items in the
// collection.
//
// Example 76 (https://www.w3.org/TR/activitystreams-vocabulary/#ex73-jsonld):
//
// {
// "first": "http://example.org/collection?page=0",
// "summary": "Sally's blog posts",
// "totalItems": 3,
// "type": "Collection"
// }
//
// Example 77 (https://www.w3.org/TR/activitystreams-vocabulary/#ex74-jsonld):
//
// {
// "first": {
// "summary": "First Page",
// "type": "owl:Class",
// "url": "http://example.org/collection?page=0"
// },
// "summary": "Sally's blog posts",
// "totalItems": 3,
// "type": "Collection"
// }
type ActivityStreamsFirstProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollectionPage() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsFirstProperty) bool
// Name returns the name of this property: "first".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,129 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// A link to an ActivityStreams collection of the actors that follow this actor
//
// Example 9 (https://www.w3.org/TR/activitypub/#example9):
//
// {
// "@context": [
// "https://www.w3.org/ns/activitystreams",
// {
// "@language": "ja"
// }
// ],
// "followers": "https://kenzoishii.example.com/followers.json",
// "following": "https://kenzoishii.example.com/following.json",
// "icon": [
// "https://kenzoishii.example.com/image/165987aklre4"
// ],
// "id": "https://kenzoishii.example.com/",
// "inbox": "https://kenzoishii.example.com/inbox.json",
// "liked": "https://kenzoishii.example.com/liked.json",
// "name": "石井健蔵",
// "outbox": "https://kenzoishii.example.com/feed.json",
// "preferredUsername": "kenzoishii",
// "summary": "この方はただの例です",
// "type": "Person"
// }
type ActivityStreamsFollowersProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsFollowersProperty) bool
// Name returns the name of this property: "followers".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,130 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// A link to an ActivityStreams collection of the actors that this actor is
// following
//
// Example 9 (https://www.w3.org/TR/activitypub/#example9):
//
// {
// "@context": [
// "https://www.w3.org/ns/activitystreams",
// {
// "@language": "ja"
// }
// ],
// "followers": "https://kenzoishii.example.com/followers.json",
// "following": "https://kenzoishii.example.com/following.json",
// "icon": [
// "https://kenzoishii.example.com/image/165987aklre4"
// ],
// "id": "https://kenzoishii.example.com/",
// "inbox": "https://kenzoishii.example.com/inbox.json",
// "liked": "https://kenzoishii.example.com/liked.json",
// "name": "石井健蔵",
// "outbox": "https://kenzoishii.example.com/feed.json",
// "preferredUsername": "kenzoishii",
// "summary": "この方はただの例です",
// "type": "Person"
// }
type ActivityStreamsFollowingProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsFollowingProperty) bool
// Name returns the name of this property: "following".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,64 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// On a Link, specifies a hint as to the rendering height in device-independent
// pixels of the linked resource.
//
// Example 120 (https://www.w3.org/TR/activitystreams-vocabulary/#ex136-jsonld):
//
// {
// "height": 100,
// "type": "Link",
// "url": "http://example.org/image.png",
// "width": 100
// }
type ActivityStreamsHeightProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaNonNegativeInteger afterwards will return false.
Clear()
// Get returns the value of this property. When
// IsXMLSchemaNonNegativeInteger returns false, Get will return any
// arbitrary value.
Get() int
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaNonNegativeInteger returns true if this property is set and
// not an IRI.
IsXMLSchemaNonNegativeInteger() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsHeightProperty) bool
// Name returns the name of this property: "height".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling
// IsXMLSchemaNonNegativeInteger afterwards will return true.
Set(v int)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,61 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// The target resource pointed to by a Link.
//
// Example 121 (https://www.w3.org/TR/activitystreams-vocabulary/#ex137-jsonld):
//
// {
// "mediaType": "text/html",
// "name": "Previous",
// "type": "Link",
// "url": "http://example.org/abc"
// }
type ActivityStreamsHrefProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaAnyURI afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
// false, Get will return any arbitrary value.
Get() *url.URL
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
IsXMLSchemaAnyURI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsHrefProperty) bool
// Name returns the name of this property: "href".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
// afterwards will return true.
Set(v *url.URL)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,63 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Hints as to the language used by the target resource. Value MUST be a [BCP47]
// Language-Tag.
//
// Example 122 (https://www.w3.org/TR/activitystreams-vocabulary/#ex138-jsonld):
//
// {
// "hreflang": "en",
// "mediaType": "text/html",
// "name": "Previous",
// "type": "Link",
// "url": "http://example.org/abc"
// }
type ActivityStreamsHreflangProperty interface {
// Clear ensures no value of this property is set. Calling IsRFCBcp47
// afterwards will return false.
Clear()
// Get returns the value of this property. When IsRFCBcp47 returns false,
// Get will return any arbitrary value.
Get() string
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsRFCBcp47 returns true if this property is set and not an IRI.
IsRFCBcp47() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsHreflangProperty) bool
// Name returns the name of this property: "hreflang".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsRFCBcp47 afterwards will
// return true.
Set(v string)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,276 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsIconPropertyIterator represents a single value for the "icon"
// property.
type ActivityStreamsIconPropertyIterator interface {
// GetActivityStreamsImage returns the value of this property. When
// IsActivityStreamsImage returns false, GetActivityStreamsImage will
// return an arbitrary value.
GetActivityStreamsImage() ActivityStreamsImage
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() bool
// IsActivityStreamsImage returns true if this property has a type of
// "Image". When true, use the GetActivityStreamsImage and
// SetActivityStreamsImage methods to access and set this property.
IsActivityStreamsImage() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsIconPropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsIcon".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsIconPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsIconPropertyIterator
// SetActivityStreamsImage sets the value of this property. Calling
// IsActivityStreamsImage afterwards returns true.
SetActivityStreamsImage(v ActivityStreamsImage)
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// 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.
SetType(t Type) error
}
// Indicates an entity that describes an icon for this object. The image should
// have an aspect ratio of one (horizontal) to one (vertical) and should be
// suitable for presentation at a small size.
//
// Example 79 (https://www.w3.org/TR/activitystreams-vocabulary/#ex77-jsonld):
//
// {
// "content": "This is all there is.",
// "icon": {
// "height": 16,
// "name": "Note icon",
// "type": "Image",
// "url": "http://example.org/note.png",
// "width": 16
// },
// "summary": "A simple note",
// "type": "Note"
// }
//
// Example 80 (https://www.w3.org/TR/activitystreams-vocabulary/#ex78-jsonld):
//
// {
// "content": "A simple note",
// "icon": [
// {
// "height": 16,
// "summary": "Note (16x16)",
// "type": "Image",
// "url": "http://example.org/note1.png",
// "width": 16
// },
// {
// "height": 32,
// "summary": "Note (32x32)",
// "type": "Image",
// "url": "http://example.org/note2.png",
// "width": 32
// }
// ],
// "summary": "A simple note",
// "type": "Note"
// }
type ActivityStreamsIconProperty interface {
// AppendActivityStreamsImage appends a Image value to the back of a list
// of the property "icon". Invalidates iterators that are traversing
// using Prev.
AppendActivityStreamsImage(v ActivityStreamsImage)
// AppendActivityStreamsLink appends a Link value to the back of a list of
// the property "icon". Invalidates iterators that are traversing
// using Prev.
AppendActivityStreamsLink(v ActivityStreamsLink)
// AppendActivityStreamsMention appends a Mention value to the back of a
// list of the property "icon". Invalidates iterators that are
// traversing using Prev.
AppendActivityStreamsMention(v ActivityStreamsMention)
// AppendIRI appends an IRI value to the back of a list of the property
// "icon"
AppendIRI(v *url.URL)
// AppendTootHashtag appends a Hashtag value to the back of a list of the
// property "icon". Invalidates iterators that are traversing using
// Prev.
AppendTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "icon". Invalidates iterators that are traversing
// using Prev. Returns an error if the type is not a valid one to set
// for this property.
AppendType(t Type) error
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsIconPropertyIterator
// 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.
Begin() ActivityStreamsIconPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsIconPropertyIterator
// InsertActivityStreamsImage inserts a Image value at the specified index
// for a property "icon". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertActivityStreamsImage(idx int, v ActivityStreamsImage)
// InsertActivityStreamsLink inserts a Link value at the specified index
// for a property "icon". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertActivityStreamsLink(idx int, v ActivityStreamsLink)
// InsertActivityStreamsMention inserts a Mention value at the specified
// index for a property "icon". Existing elements at that index and
// higher are shifted back once. Invalidates all iterators.
InsertActivityStreamsMention(idx int, v ActivityStreamsMention)
// Insert inserts an IRI value at the specified index for a property
// "icon". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertTootHashtag inserts a Hashtag value at the specified index for a
// property "icon". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertTootHashtag(idx int, v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "icon". Invalidates all iterators. Returns an error if
// the type is not a valid one to set for this property.
InsertType(idx int, t Type) error
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "icon" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsIconProperty) bool
// Name returns the name of this property ("icon") with any alias.
Name() string
// PrependActivityStreamsImage prepends a Image value to the front of a
// list of the property "icon". Invalidates all iterators.
PrependActivityStreamsImage(v ActivityStreamsImage)
// PrependActivityStreamsLink prepends a Link value to the front of a list
// of the property "icon". Invalidates all iterators.
PrependActivityStreamsLink(v ActivityStreamsLink)
// PrependActivityStreamsMention prepends a Mention value to the front of
// a list of the property "icon". Invalidates all iterators.
PrependActivityStreamsMention(v ActivityStreamsMention)
// PrependIRI prepends an IRI value to the front of a list of the property
// "icon".
PrependIRI(v *url.URL)
// PrependTootHashtag prepends a Hashtag value to the front of a list of
// the property "icon". Invalidates all iterators.
PrependTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "icon". Invalidates all iterators. Returns an error if
// the type is not a valid one to set for this property.
PrependType(t Type) error
// Remove deletes an element at the specified index from a list of the
// property "icon", regardless of its type. Panics if the index is out
// of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsImage sets a Image value to be at the specified index
// for the property "icon". Panics if the index is out of bounds.
// Invalidates all iterators.
SetActivityStreamsImage(idx int, v ActivityStreamsImage)
// SetActivityStreamsLink sets a Link value to be at the specified index
// for the property "icon". Panics if the index is out of bounds.
// Invalidates all iterators.
SetActivityStreamsLink(idx int, v ActivityStreamsLink)
// SetActivityStreamsMention sets a Mention value to be at the specified
// index for the property "icon". Panics if the index is out of
// bounds. Invalidates all iterators.
SetActivityStreamsMention(idx int, v ActivityStreamsMention)
// SetIRI sets an IRI value to be at the specified index for the property
// "icon". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetTootHashtag sets a Hashtag value to be at the specified index for
// the property "icon". Panics if the index is out of bounds.
// Invalidates all iterators.
SetTootHashtag(idx int, v TootHashtag)
// SetType sets an arbitrary type value to the specified index of the
// property "icon". 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.
SetType(idx int, t Type) error
// Swap swaps the location of values at two indices for the "icon"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,269 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsImagePropertyIterator represents a single value for the "image"
// property.
type ActivityStreamsImagePropertyIterator interface {
// GetActivityStreamsImage returns the value of this property. When
// IsActivityStreamsImage returns false, GetActivityStreamsImage will
// return an arbitrary value.
GetActivityStreamsImage() ActivityStreamsImage
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() bool
// IsActivityStreamsImage returns true if this property has a type of
// "Image". When true, use the GetActivityStreamsImage and
// SetActivityStreamsImage methods to access and set this property.
IsActivityStreamsImage() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsImagePropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsImage".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsImagePropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsImagePropertyIterator
// SetActivityStreamsImage sets the value of this property. Calling
// IsActivityStreamsImage afterwards returns true.
SetActivityStreamsImage(v ActivityStreamsImage)
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// 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.
SetType(t Type) error
}
// Indicates an entity that describes an image for this object. Unlike the icon
// property, there are no aspect ratio or display size limitations assumed.
//
// Example 81 (https://www.w3.org/TR/activitystreams-vocabulary/#ex80-jsonld):
//
// {
// "content": "This is all there is.",
// "image": {
// "name": "A Cat",
// "type": "Image",
// "url": "http://example.org/cat.png"
// },
// "name": "A simple note",
// "type": "Note"
// }
//
// Example 82 (https://www.w3.org/TR/activitystreams-vocabulary/#ex81-jsonld):
//
// {
// "content": "This is all there is.",
// "image": [
// {
// "name": "Cat 1",
// "type": "Image",
// "url": "http://example.org/cat1.png"
// },
// {
// "name": "Cat 2",
// "type": "Image",
// "url": "http://example.org/cat2.png"
// }
// ],
// "name": "A simple note",
// "type": "Note"
// }
type ActivityStreamsImageProperty interface {
// AppendActivityStreamsImage appends a Image value to the back of a list
// of the property "image". Invalidates iterators that are traversing
// using Prev.
AppendActivityStreamsImage(v ActivityStreamsImage)
// AppendActivityStreamsLink appends a Link value to the back of a list of
// the property "image". Invalidates iterators that are traversing
// using Prev.
AppendActivityStreamsLink(v ActivityStreamsLink)
// AppendActivityStreamsMention appends a Mention value to the back of a
// list of the property "image". Invalidates iterators that are
// traversing using Prev.
AppendActivityStreamsMention(v ActivityStreamsMention)
// AppendIRI appends an IRI value to the back of a list of the property
// "image"
AppendIRI(v *url.URL)
// AppendTootHashtag appends a Hashtag value to the back of a list of the
// property "image". Invalidates iterators that are traversing using
// Prev.
AppendTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "image". Invalidates iterators that are traversing
// using Prev. Returns an error if the type is not a valid one to set
// for this property.
AppendType(t Type) error
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsImagePropertyIterator
// 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.
Begin() ActivityStreamsImagePropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsImagePropertyIterator
// InsertActivityStreamsImage inserts a Image value at the specified index
// for a property "image". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertActivityStreamsImage(idx int, v ActivityStreamsImage)
// InsertActivityStreamsLink inserts a Link value at the specified index
// for a property "image". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertActivityStreamsLink(idx int, v ActivityStreamsLink)
// InsertActivityStreamsMention inserts a Mention value at the specified
// index for a property "image". Existing elements at that index and
// higher are shifted back once. Invalidates all iterators.
InsertActivityStreamsMention(idx int, v ActivityStreamsMention)
// Insert inserts an IRI value at the specified index for a property
// "image". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertTootHashtag inserts a Hashtag value at the specified index for a
// property "image". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertTootHashtag(idx int, v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "image". Invalidates all iterators. Returns an error
// if the type is not a valid one to set for this property.
InsertType(idx int, t Type) error
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "image" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsImageProperty) bool
// Name returns the name of this property ("image") with any alias.
Name() string
// PrependActivityStreamsImage prepends a Image value to the front of a
// list of the property "image". Invalidates all iterators.
PrependActivityStreamsImage(v ActivityStreamsImage)
// PrependActivityStreamsLink prepends a Link value to the front of a list
// of the property "image". Invalidates all iterators.
PrependActivityStreamsLink(v ActivityStreamsLink)
// PrependActivityStreamsMention prepends a Mention value to the front of
// a list of the property "image". Invalidates all iterators.
PrependActivityStreamsMention(v ActivityStreamsMention)
// PrependIRI prepends an IRI value to the front of a list of the property
// "image".
PrependIRI(v *url.URL)
// PrependTootHashtag prepends a Hashtag value to the front of a list of
// the property "image". Invalidates all iterators.
PrependTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "image". Invalidates all iterators. Returns an error
// if the type is not a valid one to set for this property.
PrependType(t Type) error
// Remove deletes an element at the specified index from a list of the
// property "image", regardless of its type. Panics if the index is
// out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsImage sets a Image value to be at the specified index
// for the property "image". Panics if the index is out of bounds.
// Invalidates all iterators.
SetActivityStreamsImage(idx int, v ActivityStreamsImage)
// SetActivityStreamsLink sets a Link value to be at the specified index
// for the property "image". Panics if the index is out of bounds.
// Invalidates all iterators.
SetActivityStreamsLink(idx int, v ActivityStreamsLink)
// SetActivityStreamsMention sets a Mention value to be at the specified
// index for the property "image". Panics if the index is out of
// bounds. Invalidates all iterators.
SetActivityStreamsMention(idx int, v ActivityStreamsMention)
// SetIRI sets an IRI value to be at the specified index for the property
// "image". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetTootHashtag sets a Hashtag value to be at the specified index for
// the property "image". Panics if the index is out of bounds.
// Invalidates all iterators.
SetTootHashtag(idx int, v TootHashtag)
// SetType sets an arbitrary type value to the specified index of the
// property "image". 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.
SetType(idx int, t Type) error
// Swap swaps the location of values at two indices for the "image"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,105 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// A reference to an ActivityStreams OrderedCollection comprised of all the
// messages received by the actor.
//
// Example 9 (https://www.w3.org/TR/activitypub/#example9):
//
// {
// "@context": [
// "https://www.w3.org/ns/activitystreams",
// {
// "@language": "ja"
// }
// ],
// "followers": "https://kenzoishii.example.com/followers.json",
// "following": "https://kenzoishii.example.com/following.json",
// "icon": [
// "https://kenzoishii.example.com/image/165987aklre4"
// ],
// "id": "https://kenzoishii.example.com/",
// "inbox": "https://kenzoishii.example.com/inbox.json",
// "liked": "https://kenzoishii.example.com/liked.json",
// "name": "石井健蔵",
// "outbox": "https://kenzoishii.example.com/feed.json",
// "preferredUsername": "kenzoishii",
// "summary": "この方はただの例です",
// "type": "Person"
// }
type ActivityStreamsInboxProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsInboxProperty) bool
// Name returns the name of this property: "inbox".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,134 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// In a paged Collection, indicates the furthest proceeding page of the collection.
//
// Example 86 (https://www.w3.org/TR/activitystreams-vocabulary/#ex87-jsonld):
//
// {
// "last": "http://example.org/collection?page=1",
// "summary": "A collection",
// "totalItems": 3,
// "type": "Collection"
// }
//
// Example 87 (https://www.w3.org/TR/activitystreams-vocabulary/#ex88-jsonld):
//
// {
// "last": {
// "summary": "Last Page",
// "type": "owl:Class",
// "url": "http://example.org/collection?page=1"
// },
// "summary": "A collection",
// "totalItems": 5,
// "type": "Collection"
// }
type ActivityStreamsLastProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollectionPage() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsLastProperty) bool
// Name returns the name of this property: "last".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,63 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// The latitude of a place
//
// Example 124 (https://www.w3.org/TR/activitystreams-vocabulary/#ex140-jsonld):
//
// {
// "latitude": 36.75,
// "longitude": 119.7667,
// "name": "Fresno Area",
// "radius": 15,
// "type": "Place",
// "units": "miles"
// }
type ActivityStreamsLatitudeProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaFloat afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaFloat returns
// false, Get will return any arbitrary value.
Get() float64
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaFloat returns true if this property is set and not an IRI.
IsXMLSchemaFloat() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsLatitudeProperty) bool
// Name returns the name of this property: "latitude".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaFloat
// afterwards will return true.
Set(v float64)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,129 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// A link to an ActivityStreams collection of objects this actor has liked
//
// Example 9 (https://www.w3.org/TR/activitypub/#example9):
//
// {
// "@context": [
// "https://www.w3.org/ns/activitystreams",
// {
// "@language": "ja"
// }
// ],
// "followers": "https://kenzoishii.example.com/followers.json",
// "following": "https://kenzoishii.example.com/following.json",
// "icon": [
// "https://kenzoishii.example.com/image/165987aklre4"
// ],
// "id": "https://kenzoishii.example.com/",
// "inbox": "https://kenzoishii.example.com/inbox.json",
// "liked": "https://kenzoishii.example.com/liked.json",
// "name": "石井健蔵",
// "outbox": "https://kenzoishii.example.com/feed.json",
// "preferredUsername": "kenzoishii",
// "summary": "この方はただの例です",
// "type": "Person"
// }
type ActivityStreamsLikedProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsLikedProperty) bool
// Name returns the name of this property: "liked".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,105 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// This is a list of all Like activities with this object as the object property
type ActivityStreamsLikesProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsLikesProperty) bool
// Name returns the name of this property: "likes".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,63 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// The longitude of a place
//
// Example 125 (https://www.w3.org/TR/activitystreams-vocabulary/#ex141-jsonld):
//
// {
// "latitude": 36.75,
// "longitude": 119.7667,
// "name": "Fresno Area",
// "radius": 15,
// "type": "Place",
// "units": "miles"
// }
type ActivityStreamsLongitudeProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaFloat afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaFloat returns
// false, Get will return any arbitrary value.
Get() float64
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaFloat returns true if this property is set and not an IRI.
IsXMLSchemaFloat() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsLongitudeProperty) bool
// Name returns the name of this property: "longitude".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaFloat
// afterwards will return true.
Set(v float64)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,53 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Indicates that the actor manually approves Follow activities and that an
// automatic Accept should not be expected.
type ActivityStreamsManuallyApprovesFollowersProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaBoolean afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaBoolean returns
// false, Get will return any arbitrary value.
Get() bool
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaBoolean returns true if this property is set and not an IRI.
IsXMLSchemaBoolean() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsManuallyApprovesFollowersProperty) bool
// Name returns the name of this property: "manuallyApprovesFollowers".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaBoolean
// afterwards will return true.
Set(v bool)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,65 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// When used on a Link, identifies the MIME media type of the referenced resource.
// When used on an Object, identifies the MIME media type of the value of the
// content property. If not specified, the content property is assumed to
// contain text/html content.
//
// Example 126 (https://www.w3.org/TR/activitystreams-vocabulary/#ex142-jsonld):
//
// {
// "hreflang": "en",
// "mediaType": "text/html",
// "name": "Next",
// "type": "Link",
// "url": "http://example.org/abc"
// }
type ActivityStreamsMediaTypeProperty interface {
// Clear ensures no value of this property is set. Calling IsRFCRfc2045
// afterwards will return false.
Clear()
// Get returns the value of this property. When IsRFCRfc2045 returns
// false, Get will return any arbitrary value.
Get() string
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsRFCRfc2045 returns true if this property is set and not an IRI.
IsRFCRfc2045() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsMediaTypeProperty) bool
// Name returns the name of this property: "mediaType".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsRFCRfc2045 afterwards
// will return true.
Set(v string)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,54 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// URI/ID to which this Actor has moved. A set value indicates that the Actor is
// now active at the target URI, and is no longer active on the Actor model on
// which this property is set.
type ActivityStreamsMovedToProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaAnyURI afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
// false, Get will return any arbitrary value.
Get() *url.URL
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
IsXMLSchemaAnyURI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsMovedToProperty) bool
// Name returns the name of this property: "movedTo".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
// afterwards will return true.
Set(v *url.URL)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,199 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsNamePropertyIterator represents a single value for the "name"
// property.
type ActivityStreamsNamePropertyIterator interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetLanguage returns the value for the specified BCP47 language code, or
// an empty string if it is either not a language map or no value is
// present.
GetLanguage(bcp47 string) string
// GetRDFLangString returns the value of this property. When
// IsRDFLangString returns false, GetRDFLangString will return an
// arbitrary value.
GetRDFLangString() map[string]string
// GetXMLSchemaString returns the value of this property. When
// IsXMLSchemaString returns false, GetXMLSchemaString will return an
// arbitrary value.
GetXMLSchemaString() string
// HasAny returns true if any of the values are set, except for the
// natural language map. When true, the specific has, getter, and
// setter methods may be used to determine what kind of value there is
// to access and set this property. To determine if the property was
// set as a natural language map, use the IsRDFLangString method
// instead.
HasAny() bool
// HasLanguage returns true if the natural language map has an entry for
// the specified BCP47 language code.
HasLanguage(bcp47 string) bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsRDFLangString returns true if this property has a type of
// "langString". When true, use the GetRDFLangString and
// SetRDFLangString methods to access and set this property.. To
// determine if the property was set as a natural language map, use
// the IsRDFLangString method instead.
IsRDFLangString() bool
// IsXMLSchemaString returns true if this property has a type of "string".
// When true, use the GetXMLSchemaString and SetXMLSchemaString
// methods to access and set this property.. To determine if the
// property was set as a natural language map, use the IsRDFLangString
// method instead.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsNamePropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsName".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsNamePropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsNamePropertyIterator
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetLanguage sets the value for the specified BCP47 language code.
SetLanguage(bcp47, value string)
// SetRDFLangString sets the value of this property and clears the natural
// language map. Calling IsRDFLangString afterwards will return true.
// Calling IsRDFLangString afterwards returns false.
SetRDFLangString(v map[string]string)
// SetXMLSchemaString sets the value of this property and clears the
// natural language map. Calling IsXMLSchemaString afterwards will
// return true. Calling IsRDFLangString afterwards returns false.
SetXMLSchemaString(v string)
}
// A simple, human-readable, plain-text name for the object. HTML markup MUST NOT
// be included. The name MAY be expressed using multiple language-tagged
// values.
//
// Example 117 (https://www.w3.org/TR/activitystreams-vocabulary/#ex132-jsonld):
//
// {
// "name": "A simple note",
// "type": "Note"
// }
//
// Example 118 (https://www.w3.org/TR/activitystreams-vocabulary/#ex133-jsonld):
//
// {
// "nameMap": {
// "en": "A simple note",
// "es": "Una nota sencilla",
// "zh-hans": "一段简单的笔记"
// },
// "type": "Note"
// }
type ActivityStreamsNameProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "name"
AppendIRI(v *url.URL)
// AppendRDFLangString appends a langString value to the back of a list of
// the property "name". Invalidates iterators that are traversing
// using Prev.
AppendRDFLangString(v map[string]string)
// AppendXMLSchemaString appends a string value to the back of a list of
// the property "name". Invalidates iterators that are traversing
// using Prev.
AppendXMLSchemaString(v string)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsNamePropertyIterator
// 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.
Begin() ActivityStreamsNamePropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsNamePropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "name". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertRDFLangString inserts a langString value at the specified index
// for a property "name". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertRDFLangString(idx int, v map[string]string)
// InsertXMLSchemaString inserts a string value at the specified index for
// a property "name". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertXMLSchemaString(idx int, v 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "name" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsNameProperty) bool
// Name returns the name of this property ("name") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "name".
PrependIRI(v *url.URL)
// PrependRDFLangString prepends a langString value to the front of a list
// of the property "name". Invalidates all iterators.
PrependRDFLangString(v map[string]string)
// PrependXMLSchemaString prepends a string value to the front of a list
// of the property "name". Invalidates all iterators.
PrependXMLSchemaString(v string)
// Remove deletes an element at the specified index from a list of the
// property "name", regardless of its type. Panics if the index is out
// of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// SetIRI sets an IRI value to be at the specified index for the property
// "name". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetRDFLangString sets a langString value to be at the specified index
// for the property "name". Panics if the index is out of bounds.
// Invalidates all iterators.
SetRDFLangString(idx int, v map[string]string)
// SetXMLSchemaString sets a string value to be at the specified index for
// the property "name". Panics if the index is out of bounds.
// Invalidates all iterators.
SetXMLSchemaString(idx int, v string)
// Swap swaps the location of values at two indices for the "name"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,142 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// In a paged Collection, indicates the next page of items.
//
// Example 95 (https://www.w3.org/TR/activitystreams-vocabulary/#ex96-jsonld):
//
// {
// "items": [
// "http://example.org/posts/1",
// "http://example.org/posts/2",
// "http://example.org/posts/3"
// ],
// "next": "http://example.org/collection?page=2",
// "summary": "Page 2 of Sally's blog posts",
// "type": "CollectionPage"
// }
//
// Example 96 (https://www.w3.org/TR/activitystreams-vocabulary/#ex97-jsonld):
//
// {
// "items": [
// "http://example.org/posts/1",
// "http://example.org/posts/2",
// "http://example.org/posts/3"
// ],
// "next": {
// "name": "Next Page",
// "type": "owl:Class",
// "url": "http://example.org/collection?page=2"
// },
// "summary": "Page 2 of Sally's blog posts",
// "type": "CollectionPage"
// }
type ActivityStreamsNextProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollectionPage() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsNextProperty) bool
// Name returns the name of this property: "next".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,105 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// An ActivityStreams OrderedCollection comprised of all the messages produced by
// the actor
//
// Example 9 (https://www.w3.org/TR/activitypub/#example9):
//
// {
// "@context": [
// "https://www.w3.org/ns/activitystreams",
// {
// "@language": "ja"
// }
// ],
// "followers": "https://kenzoishii.example.com/followers.json",
// "following": "https://kenzoishii.example.com/following.json",
// "icon": [
// "https://kenzoishii.example.com/image/165987aklre4"
// ],
// "id": "https://kenzoishii.example.com/",
// "inbox": "https://kenzoishii.example.com/inbox.json",
// "liked": "https://kenzoishii.example.com/liked.json",
// "name": "石井健蔵",
// "outbox": "https://kenzoishii.example.com/feed.json",
// "preferredUsername": "kenzoishii",
// "summary": "この方はただの例です",
// "type": "Person"
// }
type ActivityStreamsOutboxProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsOutboxProperty) bool
// Name returns the name of this property: "outbox".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,156 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Identifies the Collection to which a CollectionPage objects items belong.
//
// Example 123 (https://www.w3.org/TR/activitystreams-vocabulary/#ex139-jsonld):
//
// {
// "id": "http://example.org/collection?page=1",
// "items": [
// {
// "name": "Pizza Toppings to Try",
// "type": "Note"
// },
// {
// "name": "Thought about California",
// "type": "Note"
// }
// ],
// "partOf": "http://example.org/collection",
// "summary": "Page 1 of Sally's notes",
// "type": "CollectionPage"
// }
type ActivityStreamsPartOfProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsPartOfProperty) bool
// Name returns the name of this property: "partOf".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,89 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// A short username which may be used to refer to the actor, with no uniqueness
// guarantees
type ActivityStreamsPreferredUsernameProperty interface {
// Clear ensures no value and no language map for this property is set.
// Calling HasAny or any of the 'Is' methods afterwards will return
// false.
Clear()
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetLanguage returns the value for the specified BCP47 language code, or
// an empty string if it is either not a language map or no value is
// present.
GetLanguage(bcp47 string) string
// GetRDFLangString returns the value of this property. When
// IsRDFLangString returns false, GetRDFLangString will return an
// arbitrary value.
GetRDFLangString() map[string]string
// GetXMLSchemaString returns the value of this property. When
// IsXMLSchemaString returns false, GetXMLSchemaString will return an
// arbitrary value.
GetXMLSchemaString() string
// HasAny returns true if any of the values are set, except for the
// natural language map. When true, the specific has, getter, and
// setter methods may be used to determine what kind of value there is
// to access and set this property. To determine if the property was
// set as a natural language map, use the IsRDFLangString method
// instead.
HasAny() bool
// HasLanguage returns true if the natural language map has an entry for
// the specified BCP47 language code.
HasLanguage(bcp47 string) bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsRDFLangString returns true if this property has a type of
// "langString". When true, use the GetRDFLangString and
// SetRDFLangString methods to access and set this property.. To
// determine if the property was set as a natural language map, use
// the IsRDFLangString method instead.
IsRDFLangString() bool
// IsXMLSchemaString returns true if this property has a type of "string".
// When true, use the GetXMLSchemaString and SetXMLSchemaString
// methods to access and set this property.. To determine if the
// property was set as a natural language map, use the IsRDFLangString
// method instead.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsPreferredUsernameProperty) bool
// Name returns the name of this property: "preferredUsername".
Name() string
// 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.
Serialize() (interface{}, error)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetLanguage sets the value for the specified BCP47 language code.
SetLanguage(bcp47, value string)
// SetRDFLangString sets the value of this property and clears the natural
// language map. Calling IsRDFLangString afterwards will return true.
// Calling IsRDFLangString afterwards returns false.
SetRDFLangString(v map[string]string)
// SetXMLSchemaString sets the value of this property and clears the
// natural language map. Calling IsXMLSchemaString afterwards will
// return true. Calling IsRDFLangString afterwards returns false.
SetXMLSchemaString(v string)
}

View file

@ -0,0 +1,142 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// In a paged Collection, identifies the previous page of items.
//
// Example 100 (https://www.w3.org/TR/activitystreams-vocabulary/#ex104-jsonld):
//
// {
// "items": [
// "http://example.org/posts/1",
// "http://example.org/posts/2",
// "http://example.org/posts/3"
// ],
// "prev": "http://example.org/collection?page=1",
// "summary": "Page 1 of Sally's blog posts",
// "type": "CollectionPage"
// }
//
// Example 101 (https://www.w3.org/TR/activitystreams-vocabulary/#ex105-jsonld):
//
// {
// "items": [
// "http://example.org/posts/1",
// "http://example.org/posts/2",
// "http://example.org/posts/3"
// ],
// "prev": {
// "name": "Previous Page",
// "type": "owl:Class",
// "url": "http://example.org/collection?page=1"
// },
// "summary": "Page 1 of Sally's blog posts",
// "type": "CollectionPage"
// }
type ActivityStreamsPrevProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollectionPage() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsPrevProperty) bool
// Name returns the name of this property: "prev".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,64 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import (
"net/url"
"time"
)
// The date and time at which the object was published
//
// Example 128 (https://www.w3.org/TR/activitystreams-vocabulary/#ex145-jsonld):
//
// {
// "content": "Fish swim.",
// "published": "2014-12-12T12:12:12Z",
// "summary": "A simple note",
// "type": "Note"
// }
type ActivityStreamsPublishedProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaDateTime afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaDateTime
// returns false, Get will return any arbitrary value.
Get() time.Time
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaDateTime returns true if this property is set and not an IRI.
IsXMLSchemaDateTime() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsPublishedProperty) bool
// Name returns the name of this property: "published".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaDateTime
// afterwards will return true.
Set(v time.Time)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,65 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// The radius from the given latitude and longitude for a Place. The units is
// expressed by the units property. If units is not specified, the default is
// assumed to be "m" indicating "meters".
//
// Example 130 (https://www.w3.org/TR/activitystreams-vocabulary/#ex147-jsonld):
//
// {
// "latitude": 36.75,
// "longitude": 119.7667,
// "name": "Fresno Area",
// "radius": 15,
// "type": "Place",
// "units": "miles"
// }
type ActivityStreamsRadiusProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaFloat afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaFloat returns
// false, Get will return any arbitrary value.
Get() float64
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaFloat returns true if this property is set and not an IRI.
IsXMLSchemaFloat() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsRadiusProperty) bool
// Name returns the name of this property: "radius".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaFloat
// afterwards will return true.
Set(v float64)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,146 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsRelPropertyIterator represents a single value for the "rel"
// property.
type ActivityStreamsRelPropertyIterator interface {
// Get returns the value of this property. When IsRFCRfc5988 returns
// false, Get will return any arbitrary value.
Get() string
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsRFCRfc5988 returns true if this property is set and not an IRI.
IsRFCRfc5988() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsRelPropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsRel".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsRelPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsRelPropertyIterator
// Set sets the value of this property. Calling IsRFCRfc5988 afterwards
// will return true.
Set(v string)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}
// A link relation associated with a Link. The value MUST conform to both the
// [HTML5] and [RFC5988] "link relation" definitions. In the [HTML5], any
// string not containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A),
// "FF" (U+000C), "CR" (U+000D) or "," (U+002C) characters can be used as a
// valid link relation.
//
// Example 131 (https://www.w3.org/TR/activitystreams-vocabulary/#ex149-jsonld):
//
// {
// "hreflang": "en",
// "mediaType": "text/html",
// "name": "Preview",
// "rel": [
// "canonical",
// "preview"
// ],
// "type": "Link",
// "url": "http://example.org/abc"
// }
type ActivityStreamsRelProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "rel"
AppendIRI(v *url.URL)
// AppendRFCRfc5988 appends a rfc5988 value to the back of a list of the
// property "rel". Invalidates iterators that are traversing using
// Prev.
AppendRFCRfc5988(v string)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsRelPropertyIterator
// 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.
Begin() ActivityStreamsRelPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsRelPropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "rel". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertRFCRfc5988 inserts a rfc5988 value at the specified index for a
// property "rel". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertRFCRfc5988(idx int, v 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "rel" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsRelProperty) bool
// Name returns the name of this property ("rel") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "rel".
PrependIRI(v *url.URL)
// PrependRFCRfc5988 prepends a rfc5988 value to the front of a list of
// the property "rel". Invalidates all iterators.
PrependRFCRfc5988(v string)
// Remove deletes an element at the specified index from a list of the
// property "rel", regardless of its type. Panics if the index is out
// of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a rfc5988 value to be at the specified index for the property
// "rel". Panics if the index is out of bounds. Invalidates all
// iterators.
Set(idx int, v string)
// SetIRI sets an IRI value to be at the specified index for the property
// "rel". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// Swap swaps the location of values at two indices for the "rel" property.
Swap(i, j int)
}

View file

@ -0,0 +1,125 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Identifies a Collection containing objects considered to be responses to this
// object.
//
// Example 104 (https://www.w3.org/TR/activitystreams-vocabulary/#ex112-jsonld):
//
// {
// "content": "I am fine.",
// "id": "http://www.test.example/notes/1",
// "replies": {
// "items": {
// "content": "I am glad to hear it.",
// "inReplyTo": "http://www.test.example/notes/1",
// "summary": "A response to the note",
// "type": "Note"
// },
// "totalItems": 1,
// "type": "Collection"
// },
// "summary": "A simple note",
// "type": "Note"
// }
type ActivityStreamsRepliesProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsRepliesProperty) bool
// Name returns the name of this property: "replies".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,132 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsSensitivePropertyIterator represents a single value for the
// "sensitive" property.
type ActivityStreamsSensitivePropertyIterator interface {
// Get returns the value of this property. When IsXMLSchemaBoolean returns
// false, Get will return any arbitrary value.
Get() bool
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaBoolean returns true if this property is set and not an IRI.
IsXMLSchemaBoolean() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsSensitivePropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsSensitive".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsSensitivePropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsSensitivePropertyIterator
// Set sets the value of this property. Calling IsXMLSchemaBoolean
// afterwards will return true.
Set(v bool)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}
// Indicates that some users may wish to apply discretion about viewing this
// object's content, whether due to nudity, violence, or any other likely
// aspects that viewers may be sensitive to.
type ActivityStreamsSensitiveProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "sensitive"
AppendIRI(v *url.URL)
// AppendXMLSchemaBoolean appends a boolean value to the back of a list of
// the property "sensitive". Invalidates iterators that are traversing
// using Prev.
AppendXMLSchemaBoolean(v bool)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsSensitivePropertyIterator
// 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.
Begin() ActivityStreamsSensitivePropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsSensitivePropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "sensitive". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertXMLSchemaBoolean inserts a boolean value at the specified index
// for a property "sensitive". Existing elements at that index and
// higher are shifted back once. Invalidates all iterators.
InsertXMLSchemaBoolean(idx int, v bool)
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "sensitive"
// property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsSensitiveProperty) bool
// Name returns the name of this property ("sensitive") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "sensitive".
PrependIRI(v *url.URL)
// PrependXMLSchemaBoolean prepends a boolean value to the front of a list
// of the property "sensitive". Invalidates all iterators.
PrependXMLSchemaBoolean(v bool)
// Remove deletes an element at the specified index from a list of the
// property "sensitive", regardless of its type. Panics if the index
// is out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a boolean value to be at the specified index for the property
// "sensitive". Panics if the index is out of bounds. Invalidates all
// iterators.
Set(idx int, v bool)
// SetIRI sets an IRI value to be at the specified index for the property
// "sensitive". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// Swap swaps the location of values at two indices for the "sensitive"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,56 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// An optional endpoint used for wide delivery of publicly addressed activities
// and activities sent to followers. sharedInbox endpoints SHOULD also be
// publicly readable OrderedCollection objects containing objects addressed to
// the Public special collection. Reading from the sharedInbox endpoint MUST
// NOT present objects which are not addressed to the Public endpoint.
type ActivityStreamsSharedInboxProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaAnyURI afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
// false, Get will return any arbitrary value.
Get() *url.URL
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
IsXMLSchemaAnyURI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsSharedInboxProperty) bool
// Name returns the name of this property: "sharedInbox".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
// afterwards will return true.
Set(v *url.URL)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,106 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// This is a list of all Announce activities with this object as the object
// property
type ActivityStreamsSharesProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsSharesProperty) bool
// Name returns the name of this property: "shares".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,765 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// The source property is intended to convey some sort of source from which the
// content markup was derived, as a form of provenance, or to support future
// editing by clients.
//
// Example 8 (https://www.w3.org/TR/activitypub/#source-property):
//
// {
// "@context": [
// "https://www.w3.org/ns/activitystreams",
// {
// "@language": "en"
// }
// ],
// "content": "\u003cp\u003eI \u003cem\u003ereally\u003c/em\u003e like
//
// strawberries!\u003c/p\u003e",
//
// "id": "http://postparty.example/p/2415",
// "source": {
// "content": "I *really* like strawberries!",
// "mediaType": "text/markdown"
// },
// "type": "Note"
// }
type ActivityStreamsSourceProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsAccept returns the value of this property. When
// IsActivityStreamsAccept returns false, GetActivityStreamsAccept
// will return an arbitrary value.
GetActivityStreamsAccept() ActivityStreamsAccept
// GetActivityStreamsActivity returns the value of this property. When
// IsActivityStreamsActivity returns false, GetActivityStreamsActivity
// will return an arbitrary value.
GetActivityStreamsActivity() ActivityStreamsActivity
// GetActivityStreamsAdd returns the value of this property. When
// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will
// return an arbitrary value.
GetActivityStreamsAdd() ActivityStreamsAdd
// GetActivityStreamsAnnounce returns the value of this property. When
// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce
// will return an arbitrary value.
GetActivityStreamsAnnounce() ActivityStreamsAnnounce
// GetActivityStreamsApplication returns the value of this property. When
// IsActivityStreamsApplication returns false,
// GetActivityStreamsApplication will return an arbitrary value.
GetActivityStreamsApplication() ActivityStreamsApplication
// GetActivityStreamsArrive returns the value of this property. When
// IsActivityStreamsArrive returns false, GetActivityStreamsArrive
// will return an arbitrary value.
GetActivityStreamsArrive() ActivityStreamsArrive
// GetActivityStreamsArticle returns the value of this property. When
// IsActivityStreamsArticle returns false, GetActivityStreamsArticle
// will return an arbitrary value.
GetActivityStreamsArticle() ActivityStreamsArticle
// GetActivityStreamsAudio returns the value of this property. When
// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will
// return an arbitrary value.
GetActivityStreamsAudio() ActivityStreamsAudio
// GetActivityStreamsBlock returns the value of this property. When
// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will
// return an arbitrary value.
GetActivityStreamsBlock() ActivityStreamsBlock
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsCreate returns the value of this property. When
// IsActivityStreamsCreate returns false, GetActivityStreamsCreate
// will return an arbitrary value.
GetActivityStreamsCreate() ActivityStreamsCreate
// GetActivityStreamsDelete returns the value of this property. When
// IsActivityStreamsDelete returns false, GetActivityStreamsDelete
// will return an arbitrary value.
GetActivityStreamsDelete() ActivityStreamsDelete
// GetActivityStreamsDislike returns the value of this property. When
// IsActivityStreamsDislike returns false, GetActivityStreamsDislike
// will return an arbitrary value.
GetActivityStreamsDislike() ActivityStreamsDislike
// GetActivityStreamsDocument returns the value of this property. When
// IsActivityStreamsDocument returns false, GetActivityStreamsDocument
// will return an arbitrary value.
GetActivityStreamsDocument() ActivityStreamsDocument
// GetActivityStreamsEvent returns the value of this property. When
// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will
// return an arbitrary value.
GetActivityStreamsEvent() ActivityStreamsEvent
// GetActivityStreamsFlag returns the value of this property. When
// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will
// return an arbitrary value.
GetActivityStreamsFlag() ActivityStreamsFlag
// GetActivityStreamsFollow returns the value of this property. When
// IsActivityStreamsFollow returns false, GetActivityStreamsFollow
// will return an arbitrary value.
GetActivityStreamsFollow() ActivityStreamsFollow
// GetActivityStreamsGroup returns the value of this property. When
// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will
// return an arbitrary value.
GetActivityStreamsGroup() ActivityStreamsGroup
// GetActivityStreamsIgnore returns the value of this property. When
// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore
// will return an arbitrary value.
GetActivityStreamsIgnore() ActivityStreamsIgnore
// GetActivityStreamsImage returns the value of this property. When
// IsActivityStreamsImage returns false, GetActivityStreamsImage will
// return an arbitrary value.
GetActivityStreamsImage() ActivityStreamsImage
// GetActivityStreamsIntransitiveActivity returns the value of this
// property. When IsActivityStreamsIntransitiveActivity returns false,
// GetActivityStreamsIntransitiveActivity will return an arbitrary
// value.
GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity
// GetActivityStreamsInvite returns the value of this property. When
// IsActivityStreamsInvite returns false, GetActivityStreamsInvite
// will return an arbitrary value.
GetActivityStreamsInvite() ActivityStreamsInvite
// GetActivityStreamsJoin returns the value of this property. When
// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will
// return an arbitrary value.
GetActivityStreamsJoin() ActivityStreamsJoin
// GetActivityStreamsLeave returns the value of this property. When
// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will
// return an arbitrary value.
GetActivityStreamsLeave() ActivityStreamsLeave
// GetActivityStreamsLike returns the value of this property. When
// IsActivityStreamsLike returns false, GetActivityStreamsLike will
// return an arbitrary value.
GetActivityStreamsLike() ActivityStreamsLike
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsListen returns the value of this property. When
// IsActivityStreamsListen returns false, GetActivityStreamsListen
// will return an arbitrary value.
GetActivityStreamsListen() ActivityStreamsListen
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetActivityStreamsMove returns the value of this property. When
// IsActivityStreamsMove returns false, GetActivityStreamsMove will
// return an arbitrary value.
GetActivityStreamsMove() ActivityStreamsMove
// GetActivityStreamsNote returns the value of this property. When
// IsActivityStreamsNote returns false, GetActivityStreamsNote will
// return an arbitrary value.
GetActivityStreamsNote() ActivityStreamsNote
// GetActivityStreamsObject returns the value of this property. When
// IsActivityStreamsObject returns false, GetActivityStreamsObject
// will return an arbitrary value.
GetActivityStreamsObject() ActivityStreamsObject
// GetActivityStreamsOffer returns the value of this property. When
// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will
// return an arbitrary value.
GetActivityStreamsOffer() ActivityStreamsOffer
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetActivityStreamsOrganization returns the value of this property. When
// IsActivityStreamsOrganization returns false,
// GetActivityStreamsOrganization will return an arbitrary value.
GetActivityStreamsOrganization() ActivityStreamsOrganization
// GetActivityStreamsPage returns the value of this property. When
// IsActivityStreamsPage returns false, GetActivityStreamsPage will
// return an arbitrary value.
GetActivityStreamsPage() ActivityStreamsPage
// GetActivityStreamsPerson returns the value of this property. When
// IsActivityStreamsPerson returns false, GetActivityStreamsPerson
// will return an arbitrary value.
GetActivityStreamsPerson() ActivityStreamsPerson
// GetActivityStreamsPlace returns the value of this property. When
// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will
// return an arbitrary value.
GetActivityStreamsPlace() ActivityStreamsPlace
// GetActivityStreamsProfile returns the value of this property. When
// IsActivityStreamsProfile returns false, GetActivityStreamsProfile
// will return an arbitrary value.
GetActivityStreamsProfile() ActivityStreamsProfile
// GetActivityStreamsQuestion returns the value of this property. When
// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion
// will return an arbitrary value.
GetActivityStreamsQuestion() ActivityStreamsQuestion
// GetActivityStreamsRead returns the value of this property. When
// IsActivityStreamsRead returns false, GetActivityStreamsRead will
// return an arbitrary value.
GetActivityStreamsRead() ActivityStreamsRead
// GetActivityStreamsReject returns the value of this property. When
// IsActivityStreamsReject returns false, GetActivityStreamsReject
// will return an arbitrary value.
GetActivityStreamsReject() ActivityStreamsReject
// GetActivityStreamsRelationship returns the value of this property. When
// IsActivityStreamsRelationship returns false,
// GetActivityStreamsRelationship will return an arbitrary value.
GetActivityStreamsRelationship() ActivityStreamsRelationship
// GetActivityStreamsRemove returns the value of this property. When
// IsActivityStreamsRemove returns false, GetActivityStreamsRemove
// will return an arbitrary value.
GetActivityStreamsRemove() ActivityStreamsRemove
// GetActivityStreamsService returns the value of this property. When
// IsActivityStreamsService returns false, GetActivityStreamsService
// will return an arbitrary value.
GetActivityStreamsService() ActivityStreamsService
// GetActivityStreamsTentativeAccept returns the value of this property.
// When IsActivityStreamsTentativeAccept returns false,
// GetActivityStreamsTentativeAccept will return an arbitrary value.
GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept
// GetActivityStreamsTentativeReject returns the value of this property.
// When IsActivityStreamsTentativeReject returns false,
// GetActivityStreamsTentativeReject will return an arbitrary value.
GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject
// GetActivityStreamsTombstone returns the value of this property. When
// IsActivityStreamsTombstone returns false,
// GetActivityStreamsTombstone will return an arbitrary value.
GetActivityStreamsTombstone() ActivityStreamsTombstone
// GetActivityStreamsTravel returns the value of this property. When
// IsActivityStreamsTravel returns false, GetActivityStreamsTravel
// will return an arbitrary value.
GetActivityStreamsTravel() ActivityStreamsTravel
// GetActivityStreamsUndo returns the value of this property. When
// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will
// return an arbitrary value.
GetActivityStreamsUndo() ActivityStreamsUndo
// GetActivityStreamsUpdate returns the value of this property. When
// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate
// will return an arbitrary value.
GetActivityStreamsUpdate() ActivityStreamsUpdate
// GetActivityStreamsVideo returns the value of this property. When
// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will
// return an arbitrary value.
GetActivityStreamsVideo() ActivityStreamsVideo
// GetActivityStreamsView returns the value of this property. When
// IsActivityStreamsView returns false, GetActivityStreamsView will
// return an arbitrary value.
GetActivityStreamsView() ActivityStreamsView
// GetGoToSocialAnnounceApproval returns the value of this property. When
// IsGoToSocialAnnounceApproval returns false,
// GetGoToSocialAnnounceApproval will return an arbitrary value.
GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval
// GetGoToSocialLikeApproval returns the value of this property. When
// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval
// will return an arbitrary value.
GetGoToSocialLikeApproval() GoToSocialLikeApproval
// GetGoToSocialReplyApproval returns the value of this property. When
// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval
// will return an arbitrary value.
GetGoToSocialReplyApproval() GoToSocialReplyApproval
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
// return an arbitrary value.
GetSchemaPropertyValue() SchemaPropertyValue
// GetTootEmoji returns the value of this property. When IsTootEmoji
// returns false, GetTootEmoji will return an arbitrary value.
GetTootEmoji() TootEmoji
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetTootIdentityProof returns the value of this property. When
// IsTootIdentityProof returns false, GetTootIdentityProof will return
// an arbitrary value.
GetTootIdentityProof() TootIdentityProof
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() bool
// IsActivityStreamsAccept returns true if this property has a type of
// "Accept". When true, use the GetActivityStreamsAccept and
// SetActivityStreamsAccept methods to access and set this property.
IsActivityStreamsAccept() bool
// IsActivityStreamsActivity returns true if this property has a type of
// "Activity". When true, use the GetActivityStreamsActivity and
// SetActivityStreamsActivity methods to access and set this property.
IsActivityStreamsActivity() bool
// IsActivityStreamsAdd returns true if this property has a type of "Add".
// When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd
// methods to access and set this property.
IsActivityStreamsAdd() bool
// IsActivityStreamsAnnounce returns true if this property has a type of
// "Announce". When true, use the GetActivityStreamsAnnounce and
// SetActivityStreamsAnnounce methods to access and set this property.
IsActivityStreamsAnnounce() bool
// IsActivityStreamsApplication returns true if this property has a type
// of "Application". When true, use the GetActivityStreamsApplication
// and SetActivityStreamsApplication methods to access and set this
// property.
IsActivityStreamsApplication() bool
// IsActivityStreamsArrive returns true if this property has a type of
// "Arrive". When true, use the GetActivityStreamsArrive and
// SetActivityStreamsArrive methods to access and set this property.
IsActivityStreamsArrive() bool
// IsActivityStreamsArticle returns true if this property has a type of
// "Article". When true, use the GetActivityStreamsArticle and
// SetActivityStreamsArticle methods to access and set this property.
IsActivityStreamsArticle() bool
// IsActivityStreamsAudio returns true if this property has a type of
// "Audio". When true, use the GetActivityStreamsAudio and
// SetActivityStreamsAudio methods to access and set this property.
IsActivityStreamsAudio() bool
// IsActivityStreamsBlock returns true if this property has a type of
// "Block". When true, use the GetActivityStreamsBlock and
// SetActivityStreamsBlock methods to access and set this property.
IsActivityStreamsBlock() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() bool
// IsActivityStreamsCreate returns true if this property has a type of
// "Create". When true, use the GetActivityStreamsCreate and
// SetActivityStreamsCreate methods to access and set this property.
IsActivityStreamsCreate() bool
// IsActivityStreamsDelete returns true if this property has a type of
// "Delete". When true, use the GetActivityStreamsDelete and
// SetActivityStreamsDelete methods to access and set this property.
IsActivityStreamsDelete() bool
// IsActivityStreamsDislike returns true if this property has a type of
// "Dislike". When true, use the GetActivityStreamsDislike and
// SetActivityStreamsDislike methods to access and set this property.
IsActivityStreamsDislike() bool
// IsActivityStreamsDocument returns true if this property has a type of
// "Document". When true, use the GetActivityStreamsDocument and
// SetActivityStreamsDocument methods to access and set this property.
IsActivityStreamsDocument() bool
// IsActivityStreamsEvent returns true if this property has a type of
// "Event". When true, use the GetActivityStreamsEvent and
// SetActivityStreamsEvent methods to access and set this property.
IsActivityStreamsEvent() bool
// IsActivityStreamsFlag returns true if this property has a type of
// "Flag". When true, use the GetActivityStreamsFlag and
// SetActivityStreamsFlag methods to access and set this property.
IsActivityStreamsFlag() bool
// IsActivityStreamsFollow returns true if this property has a type of
// "Follow". When true, use the GetActivityStreamsFollow and
// SetActivityStreamsFollow methods to access and set this property.
IsActivityStreamsFollow() bool
// IsActivityStreamsGroup returns true if this property has a type of
// "Group". When true, use the GetActivityStreamsGroup and
// SetActivityStreamsGroup methods to access and set this property.
IsActivityStreamsGroup() bool
// IsActivityStreamsIgnore returns true if this property has a type of
// "Ignore". When true, use the GetActivityStreamsIgnore and
// SetActivityStreamsIgnore methods to access and set this property.
IsActivityStreamsIgnore() bool
// IsActivityStreamsImage returns true if this property has a type of
// "Image". When true, use the GetActivityStreamsImage and
// SetActivityStreamsImage methods to access and set this property.
IsActivityStreamsImage() bool
// IsActivityStreamsIntransitiveActivity returns true if this property has
// a type of "IntransitiveActivity". When true, use the
// GetActivityStreamsIntransitiveActivity and
// SetActivityStreamsIntransitiveActivity methods to access and set
// this property.
IsActivityStreamsIntransitiveActivity() bool
// IsActivityStreamsInvite returns true if this property has a type of
// "Invite". When true, use the GetActivityStreamsInvite and
// SetActivityStreamsInvite methods to access and set this property.
IsActivityStreamsInvite() bool
// IsActivityStreamsJoin returns true if this property has a type of
// "Join". When true, use the GetActivityStreamsJoin and
// SetActivityStreamsJoin methods to access and set this property.
IsActivityStreamsJoin() bool
// IsActivityStreamsLeave returns true if this property has a type of
// "Leave". When true, use the GetActivityStreamsLeave and
// SetActivityStreamsLeave methods to access and set this property.
IsActivityStreamsLeave() bool
// IsActivityStreamsLike returns true if this property has a type of
// "Like". When true, use the GetActivityStreamsLike and
// SetActivityStreamsLike methods to access and set this property.
IsActivityStreamsLike() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsListen returns true if this property has a type of
// "Listen". When true, use the GetActivityStreamsListen and
// SetActivityStreamsListen methods to access and set this property.
IsActivityStreamsListen() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() bool
// IsActivityStreamsMove returns true if this property has a type of
// "Move". When true, use the GetActivityStreamsMove and
// SetActivityStreamsMove methods to access and set this property.
IsActivityStreamsMove() bool
// IsActivityStreamsNote returns true if this property has a type of
// "Note". When true, use the GetActivityStreamsNote and
// SetActivityStreamsNote methods to access and set this property.
IsActivityStreamsNote() bool
// IsActivityStreamsObject returns true if this property has a type of
// "Object". When true, use the GetActivityStreamsObject and
// SetActivityStreamsObject methods to access and set this property.
IsActivityStreamsObject() bool
// IsActivityStreamsOffer returns true if this property has a type of
// "Offer". When true, use the GetActivityStreamsOffer and
// SetActivityStreamsOffer methods to access and set this property.
IsActivityStreamsOffer() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsActivityStreamsOrganization returns true if this property has a type
// of "Organization". When true, use the
// GetActivityStreamsOrganization and SetActivityStreamsOrganization
// methods to access and set this property.
IsActivityStreamsOrganization() bool
// IsActivityStreamsPage returns true if this property has a type of
// "Page". When true, use the GetActivityStreamsPage and
// SetActivityStreamsPage methods to access and set this property.
IsActivityStreamsPage() bool
// IsActivityStreamsPerson returns true if this property has a type of
// "Person". When true, use the GetActivityStreamsPerson and
// SetActivityStreamsPerson methods to access and set this property.
IsActivityStreamsPerson() bool
// IsActivityStreamsPlace returns true if this property has a type of
// "Place". When true, use the GetActivityStreamsPlace and
// SetActivityStreamsPlace methods to access and set this property.
IsActivityStreamsPlace() bool
// IsActivityStreamsProfile returns true if this property has a type of
// "Profile". When true, use the GetActivityStreamsProfile and
// SetActivityStreamsProfile methods to access and set this property.
IsActivityStreamsProfile() bool
// IsActivityStreamsQuestion returns true if this property has a type of
// "Question". When true, use the GetActivityStreamsQuestion and
// SetActivityStreamsQuestion methods to access and set this property.
IsActivityStreamsQuestion() bool
// IsActivityStreamsRead returns true if this property has a type of
// "Read". When true, use the GetActivityStreamsRead and
// SetActivityStreamsRead methods to access and set this property.
IsActivityStreamsRead() bool
// IsActivityStreamsReject returns true if this property has a type of
// "Reject". When true, use the GetActivityStreamsReject and
// SetActivityStreamsReject methods to access and set this property.
IsActivityStreamsReject() bool
// IsActivityStreamsRelationship returns true if this property has a type
// of "Relationship". When true, use the
// GetActivityStreamsRelationship and SetActivityStreamsRelationship
// methods to access and set this property.
IsActivityStreamsRelationship() bool
// IsActivityStreamsRemove returns true if this property has a type of
// "Remove". When true, use the GetActivityStreamsRemove and
// SetActivityStreamsRemove methods to access and set this property.
IsActivityStreamsRemove() bool
// IsActivityStreamsService returns true if this property has a type of
// "Service". When true, use the GetActivityStreamsService and
// SetActivityStreamsService methods to access and set this property.
IsActivityStreamsService() bool
// IsActivityStreamsTentativeAccept returns true if this property has a
// type of "TentativeAccept". When true, use the
// GetActivityStreamsTentativeAccept and
// SetActivityStreamsTentativeAccept methods to access and set this
// property.
IsActivityStreamsTentativeAccept() bool
// IsActivityStreamsTentativeReject returns true if this property has a
// type of "TentativeReject". When true, use the
// GetActivityStreamsTentativeReject and
// SetActivityStreamsTentativeReject methods to access and set this
// property.
IsActivityStreamsTentativeReject() bool
// IsActivityStreamsTombstone returns true if this property has a type of
// "Tombstone". When true, use the GetActivityStreamsTombstone and
// SetActivityStreamsTombstone methods to access and set this property.
IsActivityStreamsTombstone() bool
// IsActivityStreamsTravel returns true if this property has a type of
// "Travel". When true, use the GetActivityStreamsTravel and
// SetActivityStreamsTravel methods to access and set this property.
IsActivityStreamsTravel() bool
// IsActivityStreamsUndo returns true if this property has a type of
// "Undo". When true, use the GetActivityStreamsUndo and
// SetActivityStreamsUndo methods to access and set this property.
IsActivityStreamsUndo() bool
// IsActivityStreamsUpdate returns true if this property has a type of
// "Update". When true, use the GetActivityStreamsUpdate and
// SetActivityStreamsUpdate methods to access and set this property.
IsActivityStreamsUpdate() bool
// IsActivityStreamsVideo returns true if this property has a type of
// "Video". When true, use the GetActivityStreamsVideo and
// SetActivityStreamsVideo methods to access and set this property.
IsActivityStreamsVideo() bool
// IsActivityStreamsView returns true if this property has a type of
// "View". When true, use the GetActivityStreamsView and
// SetActivityStreamsView methods to access and set this property.
IsActivityStreamsView() bool
// IsGoToSocialAnnounceApproval returns true if this property has a type
// of "AnnounceApproval". When true, use the
// GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval
// methods to access and set this property.
IsGoToSocialAnnounceApproval() bool
// IsGoToSocialLikeApproval returns true if this property has a type of
// "LikeApproval". When true, use the GetGoToSocialLikeApproval and
// SetGoToSocialLikeApproval methods to access and set this property.
IsGoToSocialLikeApproval() bool
// IsGoToSocialReplyApproval returns true if this property has a type of
// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and
// SetGoToSocialReplyApproval methods to access and set this property.
IsGoToSocialReplyApproval() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
IsSchemaPropertyValue() bool
// IsTootEmoji returns true if this property has a type of "Emoji". When
// true, use the GetTootEmoji and SetTootEmoji methods to access and
// set this property.
IsTootEmoji() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// IsTootIdentityProof returns true if this property has a type of
// "IdentityProof". When true, use the GetTootIdentityProof and
// SetTootIdentityProof methods to access and set this property.
IsTootIdentityProof() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsSourceProperty) bool
// Name returns the name of this property: "source".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsAccept sets the value of this property. Calling
// IsActivityStreamsAccept afterwards returns true.
SetActivityStreamsAccept(v ActivityStreamsAccept)
// SetActivityStreamsActivity sets the value of this property. Calling
// IsActivityStreamsActivity afterwards returns true.
SetActivityStreamsActivity(v ActivityStreamsActivity)
// SetActivityStreamsAdd sets the value of this property. Calling
// IsActivityStreamsAdd afterwards returns true.
SetActivityStreamsAdd(v ActivityStreamsAdd)
// SetActivityStreamsAnnounce sets the value of this property. Calling
// IsActivityStreamsAnnounce afterwards returns true.
SetActivityStreamsAnnounce(v ActivityStreamsAnnounce)
// SetActivityStreamsApplication sets the value of this property. Calling
// IsActivityStreamsApplication afterwards returns true.
SetActivityStreamsApplication(v ActivityStreamsApplication)
// SetActivityStreamsArrive sets the value of this property. Calling
// IsActivityStreamsArrive afterwards returns true.
SetActivityStreamsArrive(v ActivityStreamsArrive)
// SetActivityStreamsArticle sets the value of this property. Calling
// IsActivityStreamsArticle afterwards returns true.
SetActivityStreamsArticle(v ActivityStreamsArticle)
// SetActivityStreamsAudio sets the value of this property. Calling
// IsActivityStreamsAudio afterwards returns true.
SetActivityStreamsAudio(v ActivityStreamsAudio)
// SetActivityStreamsBlock sets the value of this property. Calling
// IsActivityStreamsBlock afterwards returns true.
SetActivityStreamsBlock(v ActivityStreamsBlock)
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsCreate sets the value of this property. Calling
// IsActivityStreamsCreate afterwards returns true.
SetActivityStreamsCreate(v ActivityStreamsCreate)
// SetActivityStreamsDelete sets the value of this property. Calling
// IsActivityStreamsDelete afterwards returns true.
SetActivityStreamsDelete(v ActivityStreamsDelete)
// SetActivityStreamsDislike sets the value of this property. Calling
// IsActivityStreamsDislike afterwards returns true.
SetActivityStreamsDislike(v ActivityStreamsDislike)
// SetActivityStreamsDocument sets the value of this property. Calling
// IsActivityStreamsDocument afterwards returns true.
SetActivityStreamsDocument(v ActivityStreamsDocument)
// SetActivityStreamsEvent sets the value of this property. Calling
// IsActivityStreamsEvent afterwards returns true.
SetActivityStreamsEvent(v ActivityStreamsEvent)
// SetActivityStreamsFlag sets the value of this property. Calling
// IsActivityStreamsFlag afterwards returns true.
SetActivityStreamsFlag(v ActivityStreamsFlag)
// SetActivityStreamsFollow sets the value of this property. Calling
// IsActivityStreamsFollow afterwards returns true.
SetActivityStreamsFollow(v ActivityStreamsFollow)
// SetActivityStreamsGroup sets the value of this property. Calling
// IsActivityStreamsGroup afterwards returns true.
SetActivityStreamsGroup(v ActivityStreamsGroup)
// SetActivityStreamsIgnore sets the value of this property. Calling
// IsActivityStreamsIgnore afterwards returns true.
SetActivityStreamsIgnore(v ActivityStreamsIgnore)
// SetActivityStreamsImage sets the value of this property. Calling
// IsActivityStreamsImage afterwards returns true.
SetActivityStreamsImage(v ActivityStreamsImage)
// SetActivityStreamsIntransitiveActivity sets the value of this property.
// Calling IsActivityStreamsIntransitiveActivity afterwards returns
// true.
SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity)
// SetActivityStreamsInvite sets the value of this property. Calling
// IsActivityStreamsInvite afterwards returns true.
SetActivityStreamsInvite(v ActivityStreamsInvite)
// SetActivityStreamsJoin sets the value of this property. Calling
// IsActivityStreamsJoin afterwards returns true.
SetActivityStreamsJoin(v ActivityStreamsJoin)
// SetActivityStreamsLeave sets the value of this property. Calling
// IsActivityStreamsLeave afterwards returns true.
SetActivityStreamsLeave(v ActivityStreamsLeave)
// SetActivityStreamsLike sets the value of this property. Calling
// IsActivityStreamsLike afterwards returns true.
SetActivityStreamsLike(v ActivityStreamsLike)
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsListen sets the value of this property. Calling
// IsActivityStreamsListen afterwards returns true.
SetActivityStreamsListen(v ActivityStreamsListen)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetActivityStreamsMove sets the value of this property. Calling
// IsActivityStreamsMove afterwards returns true.
SetActivityStreamsMove(v ActivityStreamsMove)
// SetActivityStreamsNote sets the value of this property. Calling
// IsActivityStreamsNote afterwards returns true.
SetActivityStreamsNote(v ActivityStreamsNote)
// SetActivityStreamsObject sets the value of this property. Calling
// IsActivityStreamsObject afterwards returns true.
SetActivityStreamsObject(v ActivityStreamsObject)
// SetActivityStreamsOffer sets the value of this property. Calling
// IsActivityStreamsOffer afterwards returns true.
SetActivityStreamsOffer(v ActivityStreamsOffer)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetActivityStreamsOrganization sets the value of this property. Calling
// IsActivityStreamsOrganization afterwards returns true.
SetActivityStreamsOrganization(v ActivityStreamsOrganization)
// SetActivityStreamsPage sets the value of this property. Calling
// IsActivityStreamsPage afterwards returns true.
SetActivityStreamsPage(v ActivityStreamsPage)
// SetActivityStreamsPerson sets the value of this property. Calling
// IsActivityStreamsPerson afterwards returns true.
SetActivityStreamsPerson(v ActivityStreamsPerson)
// SetActivityStreamsPlace sets the value of this property. Calling
// IsActivityStreamsPlace afterwards returns true.
SetActivityStreamsPlace(v ActivityStreamsPlace)
// SetActivityStreamsProfile sets the value of this property. Calling
// IsActivityStreamsProfile afterwards returns true.
SetActivityStreamsProfile(v ActivityStreamsProfile)
// SetActivityStreamsQuestion sets the value of this property. Calling
// IsActivityStreamsQuestion afterwards returns true.
SetActivityStreamsQuestion(v ActivityStreamsQuestion)
// SetActivityStreamsRead sets the value of this property. Calling
// IsActivityStreamsRead afterwards returns true.
SetActivityStreamsRead(v ActivityStreamsRead)
// SetActivityStreamsReject sets the value of this property. Calling
// IsActivityStreamsReject afterwards returns true.
SetActivityStreamsReject(v ActivityStreamsReject)
// SetActivityStreamsRelationship sets the value of this property. Calling
// IsActivityStreamsRelationship afterwards returns true.
SetActivityStreamsRelationship(v ActivityStreamsRelationship)
// SetActivityStreamsRemove sets the value of this property. Calling
// IsActivityStreamsRemove afterwards returns true.
SetActivityStreamsRemove(v ActivityStreamsRemove)
// SetActivityStreamsService sets the value of this property. Calling
// IsActivityStreamsService afterwards returns true.
SetActivityStreamsService(v ActivityStreamsService)
// SetActivityStreamsTentativeAccept sets the value of this property.
// Calling IsActivityStreamsTentativeAccept afterwards returns true.
SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept)
// SetActivityStreamsTentativeReject sets the value of this property.
// Calling IsActivityStreamsTentativeReject afterwards returns true.
SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject)
// SetActivityStreamsTombstone sets the value of this property. Calling
// IsActivityStreamsTombstone afterwards returns true.
SetActivityStreamsTombstone(v ActivityStreamsTombstone)
// SetActivityStreamsTravel sets the value of this property. Calling
// IsActivityStreamsTravel afterwards returns true.
SetActivityStreamsTravel(v ActivityStreamsTravel)
// SetActivityStreamsUndo sets the value of this property. Calling
// IsActivityStreamsUndo afterwards returns true.
SetActivityStreamsUndo(v ActivityStreamsUndo)
// SetActivityStreamsUpdate sets the value of this property. Calling
// IsActivityStreamsUpdate afterwards returns true.
SetActivityStreamsUpdate(v ActivityStreamsUpdate)
// SetActivityStreamsVideo sets the value of this property. Calling
// IsActivityStreamsVideo afterwards returns true.
SetActivityStreamsVideo(v ActivityStreamsVideo)
// SetActivityStreamsView sets the value of this property. Calling
// IsActivityStreamsView afterwards returns true.
SetActivityStreamsView(v ActivityStreamsView)
// SetGoToSocialAnnounceApproval sets the value of this property. Calling
// IsGoToSocialAnnounceApproval afterwards returns true.
SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval)
// SetGoToSocialLikeApproval sets the value of this property. Calling
// IsGoToSocialLikeApproval afterwards returns true.
SetGoToSocialLikeApproval(v GoToSocialLikeApproval)
// SetGoToSocialReplyApproval sets the value of this property. Calling
// IsGoToSocialReplyApproval afterwards returns true.
SetGoToSocialReplyApproval(v GoToSocialReplyApproval)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
SetSchemaPropertyValue(v SchemaPropertyValue)
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
// afterwards returns true.
SetTootEmoji(v TootEmoji)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetTootIdentityProof sets the value of this property. Calling
// IsTootIdentityProof afterwards returns true.
SetTootIdentityProof(v TootIdentityProof)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,73 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// A non-negative integer value identifying the relative position within the
// logical view of a strictly ordered collection.
//
// Example 132 (https://www.w3.org/TR/activitystreams-vocabulary/#ex150-jsonld):
//
// {
// "orderedItems": [
// {
// "name": "Density of Water",
// "type": "Note"
// },
// {
// "name": "Air Mattress Idea",
// "type": "Note"
// }
// ],
// "startIndex": 0,
// "summary": "Page 1 of Sally's notes",
// "type": "OrderedCollectionPage"
// }
type ActivityStreamsStartIndexProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaNonNegativeInteger afterwards will return false.
Clear()
// Get returns the value of this property. When
// IsXMLSchemaNonNegativeInteger returns false, Get will return any
// arbitrary value.
Get() int
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaNonNegativeInteger returns true if this property is set and
// not an IRI.
IsXMLSchemaNonNegativeInteger() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsStartIndexProperty) bool
// Name returns the name of this property: "startIndex".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling
// IsXMLSchemaNonNegativeInteger afterwards will return true.
Set(v int)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,66 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import (
"net/url"
"time"
)
// The date and time describing the actual or expected starting time of the
// object. When used with an Activity object, for instance, the startTime
// property specifies the moment the activity began or is scheduled to begin.
//
// Example 129 (https://www.w3.org/TR/activitystreams-vocabulary/#ex146-jsonld):
//
// {
// "endTime": "2015-01-01T06:00:00-08:00",
// "name": "Going-Away Party for Jim",
// "startTime": "2014-12-31T23:00:00-08:00",
// "type": "Event"
// }
type ActivityStreamsStartTimeProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaDateTime afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaDateTime
// returns false, Get will return any arbitrary value.
Get() time.Time
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaDateTime returns true if this property is set and not an IRI.
IsXMLSchemaDateTime() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsStartTimeProperty) bool
// Name returns the name of this property: "startTime".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaDateTime
// afterwards will return true.
Set(v time.Time)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,252 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsStreamsPropertyIterator represents a single value for the
// "streams" property.
type ActivityStreamsStreamsPropertyIterator interface {
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsStreamsPropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsStreams".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsStreamsPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsStreamsPropertyIterator
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}
// A list of supplementary Collections which may be of interest
type ActivityStreamsStreamsProperty interface {
// AppendActivityStreamsCollection appends a Collection value to the back
// of a list of the property "streams". Invalidates iterators that are
// traversing using Prev.
AppendActivityStreamsCollection(v ActivityStreamsCollection)
// AppendActivityStreamsCollectionPage appends a CollectionPage value to
// the back of a list of the property "streams". Invalidates iterators
// that are traversing using Prev.
AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// AppendActivityStreamsOrderedCollection appends a OrderedCollection
// value to the back of a list of the property "streams". Invalidates
// iterators that are traversing using Prev.
AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// AppendActivityStreamsOrderedCollectionPage appends a
// OrderedCollectionPage value to the back of a list of the property
// "streams". Invalidates iterators that are traversing using Prev.
AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// AppendIRI appends an IRI value to the back of a list of the property
// "streams"
AppendIRI(v *url.URL)
// 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.
AppendType(t Type) error
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsStreamsPropertyIterator
// 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.
Begin() ActivityStreamsStreamsPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsStreamsPropertyIterator
// 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.
InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection)
// 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.
InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage)
// 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.
InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection)
// 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.
InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage)
// 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.
InsertIRI(idx int, v *url.URL)
// 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.
InsertType(idx int, t Type) error
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "streams" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsStreamsProperty) bool
// Name returns the name of this property ("streams") with any alias.
Name() string
// PrependActivityStreamsCollection prepends a Collection value to the
// front of a list of the property "streams". Invalidates all
// iterators.
PrependActivityStreamsCollection(v ActivityStreamsCollection)
// PrependActivityStreamsCollectionPage prepends a CollectionPage value to
// the front of a list of the property "streams". Invalidates all
// iterators.
PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// PrependActivityStreamsOrderedCollection prepends a OrderedCollection
// value to the front of a list of the property "streams". Invalidates
// all iterators.
PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// PrependActivityStreamsOrderedCollectionPage prepends a
// OrderedCollectionPage value to the front of a list of the property
// "streams". Invalidates all iterators.
PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// PrependIRI prepends an IRI value to the front of a list of the property
// "streams".
PrependIRI(v *url.URL)
// 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.
PrependType(t Type) error
// 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.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// 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.
SetActivityStreamsCollection(idx int, v ActivityStreamsCollection)
// 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.
SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage)
// 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.
SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection)
// 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.
SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage)
// SetIRI sets an IRI value to be at the specified index for the property
// "streams". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// 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.
SetType(idx int, t Type) error
// Swap swaps the location of values at two indices for the "streams"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,760 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// On a Relationship object, the subject property identifies one of the connected
// individuals. For instance, for a Relationship object describing "John is
// related to Sally", subject would refer to John.
//
// Example 139 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22a-jsonld):
//
// {
// "object": {
// "name": "John",
// "type": "Person"
// },
// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf",
// "subject": {
// "name": "Sally",
// "type": "Person"
// },
// "summary": "Sally is an acquaintance of John's",
// "type": "Relationship"
// }
type ActivityStreamsSubjectProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsAccept returns the value of this property. When
// IsActivityStreamsAccept returns false, GetActivityStreamsAccept
// will return an arbitrary value.
GetActivityStreamsAccept() ActivityStreamsAccept
// GetActivityStreamsActivity returns the value of this property. When
// IsActivityStreamsActivity returns false, GetActivityStreamsActivity
// will return an arbitrary value.
GetActivityStreamsActivity() ActivityStreamsActivity
// GetActivityStreamsAdd returns the value of this property. When
// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will
// return an arbitrary value.
GetActivityStreamsAdd() ActivityStreamsAdd
// GetActivityStreamsAnnounce returns the value of this property. When
// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce
// will return an arbitrary value.
GetActivityStreamsAnnounce() ActivityStreamsAnnounce
// GetActivityStreamsApplication returns the value of this property. When
// IsActivityStreamsApplication returns false,
// GetActivityStreamsApplication will return an arbitrary value.
GetActivityStreamsApplication() ActivityStreamsApplication
// GetActivityStreamsArrive returns the value of this property. When
// IsActivityStreamsArrive returns false, GetActivityStreamsArrive
// will return an arbitrary value.
GetActivityStreamsArrive() ActivityStreamsArrive
// GetActivityStreamsArticle returns the value of this property. When
// IsActivityStreamsArticle returns false, GetActivityStreamsArticle
// will return an arbitrary value.
GetActivityStreamsArticle() ActivityStreamsArticle
// GetActivityStreamsAudio returns the value of this property. When
// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will
// return an arbitrary value.
GetActivityStreamsAudio() ActivityStreamsAudio
// GetActivityStreamsBlock returns the value of this property. When
// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will
// return an arbitrary value.
GetActivityStreamsBlock() ActivityStreamsBlock
// GetActivityStreamsCollection returns the value of this property. When
// IsActivityStreamsCollection returns false,
// GetActivityStreamsCollection will return an arbitrary value.
GetActivityStreamsCollection() ActivityStreamsCollection
// GetActivityStreamsCollectionPage returns the value of this property.
// When IsActivityStreamsCollectionPage returns false,
// GetActivityStreamsCollectionPage will return an arbitrary value.
GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage
// GetActivityStreamsCreate returns the value of this property. When
// IsActivityStreamsCreate returns false, GetActivityStreamsCreate
// will return an arbitrary value.
GetActivityStreamsCreate() ActivityStreamsCreate
// GetActivityStreamsDelete returns the value of this property. When
// IsActivityStreamsDelete returns false, GetActivityStreamsDelete
// will return an arbitrary value.
GetActivityStreamsDelete() ActivityStreamsDelete
// GetActivityStreamsDislike returns the value of this property. When
// IsActivityStreamsDislike returns false, GetActivityStreamsDislike
// will return an arbitrary value.
GetActivityStreamsDislike() ActivityStreamsDislike
// GetActivityStreamsDocument returns the value of this property. When
// IsActivityStreamsDocument returns false, GetActivityStreamsDocument
// will return an arbitrary value.
GetActivityStreamsDocument() ActivityStreamsDocument
// GetActivityStreamsEvent returns the value of this property. When
// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will
// return an arbitrary value.
GetActivityStreamsEvent() ActivityStreamsEvent
// GetActivityStreamsFlag returns the value of this property. When
// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will
// return an arbitrary value.
GetActivityStreamsFlag() ActivityStreamsFlag
// GetActivityStreamsFollow returns the value of this property. When
// IsActivityStreamsFollow returns false, GetActivityStreamsFollow
// will return an arbitrary value.
GetActivityStreamsFollow() ActivityStreamsFollow
// GetActivityStreamsGroup returns the value of this property. When
// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will
// return an arbitrary value.
GetActivityStreamsGroup() ActivityStreamsGroup
// GetActivityStreamsIgnore returns the value of this property. When
// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore
// will return an arbitrary value.
GetActivityStreamsIgnore() ActivityStreamsIgnore
// GetActivityStreamsImage returns the value of this property. When
// IsActivityStreamsImage returns false, GetActivityStreamsImage will
// return an arbitrary value.
GetActivityStreamsImage() ActivityStreamsImage
// GetActivityStreamsIntransitiveActivity returns the value of this
// property. When IsActivityStreamsIntransitiveActivity returns false,
// GetActivityStreamsIntransitiveActivity will return an arbitrary
// value.
GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity
// GetActivityStreamsInvite returns the value of this property. When
// IsActivityStreamsInvite returns false, GetActivityStreamsInvite
// will return an arbitrary value.
GetActivityStreamsInvite() ActivityStreamsInvite
// GetActivityStreamsJoin returns the value of this property. When
// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will
// return an arbitrary value.
GetActivityStreamsJoin() ActivityStreamsJoin
// GetActivityStreamsLeave returns the value of this property. When
// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will
// return an arbitrary value.
GetActivityStreamsLeave() ActivityStreamsLeave
// GetActivityStreamsLike returns the value of this property. When
// IsActivityStreamsLike returns false, GetActivityStreamsLike will
// return an arbitrary value.
GetActivityStreamsLike() ActivityStreamsLike
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsListen returns the value of this property. When
// IsActivityStreamsListen returns false, GetActivityStreamsListen
// will return an arbitrary value.
GetActivityStreamsListen() ActivityStreamsListen
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetActivityStreamsMove returns the value of this property. When
// IsActivityStreamsMove returns false, GetActivityStreamsMove will
// return an arbitrary value.
GetActivityStreamsMove() ActivityStreamsMove
// GetActivityStreamsNote returns the value of this property. When
// IsActivityStreamsNote returns false, GetActivityStreamsNote will
// return an arbitrary value.
GetActivityStreamsNote() ActivityStreamsNote
// GetActivityStreamsObject returns the value of this property. When
// IsActivityStreamsObject returns false, GetActivityStreamsObject
// will return an arbitrary value.
GetActivityStreamsObject() ActivityStreamsObject
// GetActivityStreamsOffer returns the value of this property. When
// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will
// return an arbitrary value.
GetActivityStreamsOffer() ActivityStreamsOffer
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetActivityStreamsOrganization returns the value of this property. When
// IsActivityStreamsOrganization returns false,
// GetActivityStreamsOrganization will return an arbitrary value.
GetActivityStreamsOrganization() ActivityStreamsOrganization
// GetActivityStreamsPage returns the value of this property. When
// IsActivityStreamsPage returns false, GetActivityStreamsPage will
// return an arbitrary value.
GetActivityStreamsPage() ActivityStreamsPage
// GetActivityStreamsPerson returns the value of this property. When
// IsActivityStreamsPerson returns false, GetActivityStreamsPerson
// will return an arbitrary value.
GetActivityStreamsPerson() ActivityStreamsPerson
// GetActivityStreamsPlace returns the value of this property. When
// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will
// return an arbitrary value.
GetActivityStreamsPlace() ActivityStreamsPlace
// GetActivityStreamsProfile returns the value of this property. When
// IsActivityStreamsProfile returns false, GetActivityStreamsProfile
// will return an arbitrary value.
GetActivityStreamsProfile() ActivityStreamsProfile
// GetActivityStreamsQuestion returns the value of this property. When
// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion
// will return an arbitrary value.
GetActivityStreamsQuestion() ActivityStreamsQuestion
// GetActivityStreamsRead returns the value of this property. When
// IsActivityStreamsRead returns false, GetActivityStreamsRead will
// return an arbitrary value.
GetActivityStreamsRead() ActivityStreamsRead
// GetActivityStreamsReject returns the value of this property. When
// IsActivityStreamsReject returns false, GetActivityStreamsReject
// will return an arbitrary value.
GetActivityStreamsReject() ActivityStreamsReject
// GetActivityStreamsRelationship returns the value of this property. When
// IsActivityStreamsRelationship returns false,
// GetActivityStreamsRelationship will return an arbitrary value.
GetActivityStreamsRelationship() ActivityStreamsRelationship
// GetActivityStreamsRemove returns the value of this property. When
// IsActivityStreamsRemove returns false, GetActivityStreamsRemove
// will return an arbitrary value.
GetActivityStreamsRemove() ActivityStreamsRemove
// GetActivityStreamsService returns the value of this property. When
// IsActivityStreamsService returns false, GetActivityStreamsService
// will return an arbitrary value.
GetActivityStreamsService() ActivityStreamsService
// GetActivityStreamsTentativeAccept returns the value of this property.
// When IsActivityStreamsTentativeAccept returns false,
// GetActivityStreamsTentativeAccept will return an arbitrary value.
GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept
// GetActivityStreamsTentativeReject returns the value of this property.
// When IsActivityStreamsTentativeReject returns false,
// GetActivityStreamsTentativeReject will return an arbitrary value.
GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject
// GetActivityStreamsTombstone returns the value of this property. When
// IsActivityStreamsTombstone returns false,
// GetActivityStreamsTombstone will return an arbitrary value.
GetActivityStreamsTombstone() ActivityStreamsTombstone
// GetActivityStreamsTravel returns the value of this property. When
// IsActivityStreamsTravel returns false, GetActivityStreamsTravel
// will return an arbitrary value.
GetActivityStreamsTravel() ActivityStreamsTravel
// GetActivityStreamsUndo returns the value of this property. When
// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will
// return an arbitrary value.
GetActivityStreamsUndo() ActivityStreamsUndo
// GetActivityStreamsUpdate returns the value of this property. When
// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate
// will return an arbitrary value.
GetActivityStreamsUpdate() ActivityStreamsUpdate
// GetActivityStreamsVideo returns the value of this property. When
// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will
// return an arbitrary value.
GetActivityStreamsVideo() ActivityStreamsVideo
// GetActivityStreamsView returns the value of this property. When
// IsActivityStreamsView returns false, GetActivityStreamsView will
// return an arbitrary value.
GetActivityStreamsView() ActivityStreamsView
// GetGoToSocialAnnounceApproval returns the value of this property. When
// IsGoToSocialAnnounceApproval returns false,
// GetGoToSocialAnnounceApproval will return an arbitrary value.
GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval
// GetGoToSocialLikeApproval returns the value of this property. When
// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval
// will return an arbitrary value.
GetGoToSocialLikeApproval() GoToSocialLikeApproval
// GetGoToSocialReplyApproval returns the value of this property. When
// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval
// will return an arbitrary value.
GetGoToSocialReplyApproval() GoToSocialReplyApproval
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
// return an arbitrary value.
GetSchemaPropertyValue() SchemaPropertyValue
// GetTootEmoji returns the value of this property. When IsTootEmoji
// returns false, GetTootEmoji will return an arbitrary value.
GetTootEmoji() TootEmoji
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetTootIdentityProof returns the value of this property. When
// IsTootIdentityProof returns false, GetTootIdentityProof will return
// an arbitrary value.
GetTootIdentityProof() TootIdentityProof
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() bool
// IsActivityStreamsAccept returns true if this property has a type of
// "Accept". When true, use the GetActivityStreamsAccept and
// SetActivityStreamsAccept methods to access and set this property.
IsActivityStreamsAccept() bool
// IsActivityStreamsActivity returns true if this property has a type of
// "Activity". When true, use the GetActivityStreamsActivity and
// SetActivityStreamsActivity methods to access and set this property.
IsActivityStreamsActivity() bool
// IsActivityStreamsAdd returns true if this property has a type of "Add".
// When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd
// methods to access and set this property.
IsActivityStreamsAdd() bool
// IsActivityStreamsAnnounce returns true if this property has a type of
// "Announce". When true, use the GetActivityStreamsAnnounce and
// SetActivityStreamsAnnounce methods to access and set this property.
IsActivityStreamsAnnounce() bool
// IsActivityStreamsApplication returns true if this property has a type
// of "Application". When true, use the GetActivityStreamsApplication
// and SetActivityStreamsApplication methods to access and set this
// property.
IsActivityStreamsApplication() bool
// IsActivityStreamsArrive returns true if this property has a type of
// "Arrive". When true, use the GetActivityStreamsArrive and
// SetActivityStreamsArrive methods to access and set this property.
IsActivityStreamsArrive() bool
// IsActivityStreamsArticle returns true if this property has a type of
// "Article". When true, use the GetActivityStreamsArticle and
// SetActivityStreamsArticle methods to access and set this property.
IsActivityStreamsArticle() bool
// IsActivityStreamsAudio returns true if this property has a type of
// "Audio". When true, use the GetActivityStreamsAudio and
// SetActivityStreamsAudio methods to access and set this property.
IsActivityStreamsAudio() bool
// IsActivityStreamsBlock returns true if this property has a type of
// "Block". When true, use the GetActivityStreamsBlock and
// SetActivityStreamsBlock methods to access and set this property.
IsActivityStreamsBlock() 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.
IsActivityStreamsCollection() 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.
IsActivityStreamsCollectionPage() bool
// IsActivityStreamsCreate returns true if this property has a type of
// "Create". When true, use the GetActivityStreamsCreate and
// SetActivityStreamsCreate methods to access and set this property.
IsActivityStreamsCreate() bool
// IsActivityStreamsDelete returns true if this property has a type of
// "Delete". When true, use the GetActivityStreamsDelete and
// SetActivityStreamsDelete methods to access and set this property.
IsActivityStreamsDelete() bool
// IsActivityStreamsDislike returns true if this property has a type of
// "Dislike". When true, use the GetActivityStreamsDislike and
// SetActivityStreamsDislike methods to access and set this property.
IsActivityStreamsDislike() bool
// IsActivityStreamsDocument returns true if this property has a type of
// "Document". When true, use the GetActivityStreamsDocument and
// SetActivityStreamsDocument methods to access and set this property.
IsActivityStreamsDocument() bool
// IsActivityStreamsEvent returns true if this property has a type of
// "Event". When true, use the GetActivityStreamsEvent and
// SetActivityStreamsEvent methods to access and set this property.
IsActivityStreamsEvent() bool
// IsActivityStreamsFlag returns true if this property has a type of
// "Flag". When true, use the GetActivityStreamsFlag and
// SetActivityStreamsFlag methods to access and set this property.
IsActivityStreamsFlag() bool
// IsActivityStreamsFollow returns true if this property has a type of
// "Follow". When true, use the GetActivityStreamsFollow and
// SetActivityStreamsFollow methods to access and set this property.
IsActivityStreamsFollow() bool
// IsActivityStreamsGroup returns true if this property has a type of
// "Group". When true, use the GetActivityStreamsGroup and
// SetActivityStreamsGroup methods to access and set this property.
IsActivityStreamsGroup() bool
// IsActivityStreamsIgnore returns true if this property has a type of
// "Ignore". When true, use the GetActivityStreamsIgnore and
// SetActivityStreamsIgnore methods to access and set this property.
IsActivityStreamsIgnore() bool
// IsActivityStreamsImage returns true if this property has a type of
// "Image". When true, use the GetActivityStreamsImage and
// SetActivityStreamsImage methods to access and set this property.
IsActivityStreamsImage() bool
// IsActivityStreamsIntransitiveActivity returns true if this property has
// a type of "IntransitiveActivity". When true, use the
// GetActivityStreamsIntransitiveActivity and
// SetActivityStreamsIntransitiveActivity methods to access and set
// this property.
IsActivityStreamsIntransitiveActivity() bool
// IsActivityStreamsInvite returns true if this property has a type of
// "Invite". When true, use the GetActivityStreamsInvite and
// SetActivityStreamsInvite methods to access and set this property.
IsActivityStreamsInvite() bool
// IsActivityStreamsJoin returns true if this property has a type of
// "Join". When true, use the GetActivityStreamsJoin and
// SetActivityStreamsJoin methods to access and set this property.
IsActivityStreamsJoin() bool
// IsActivityStreamsLeave returns true if this property has a type of
// "Leave". When true, use the GetActivityStreamsLeave and
// SetActivityStreamsLeave methods to access and set this property.
IsActivityStreamsLeave() bool
// IsActivityStreamsLike returns true if this property has a type of
// "Like". When true, use the GetActivityStreamsLike and
// SetActivityStreamsLike methods to access and set this property.
IsActivityStreamsLike() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsListen returns true if this property has a type of
// "Listen". When true, use the GetActivityStreamsListen and
// SetActivityStreamsListen methods to access and set this property.
IsActivityStreamsListen() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() bool
// IsActivityStreamsMove returns true if this property has a type of
// "Move". When true, use the GetActivityStreamsMove and
// SetActivityStreamsMove methods to access and set this property.
IsActivityStreamsMove() bool
// IsActivityStreamsNote returns true if this property has a type of
// "Note". When true, use the GetActivityStreamsNote and
// SetActivityStreamsNote methods to access and set this property.
IsActivityStreamsNote() bool
// IsActivityStreamsObject returns true if this property has a type of
// "Object". When true, use the GetActivityStreamsObject and
// SetActivityStreamsObject methods to access and set this property.
IsActivityStreamsObject() bool
// IsActivityStreamsOffer returns true if this property has a type of
// "Offer". When true, use the GetActivityStreamsOffer and
// SetActivityStreamsOffer methods to access and set this property.
IsActivityStreamsOffer() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsActivityStreamsOrganization returns true if this property has a type
// of "Organization". When true, use the
// GetActivityStreamsOrganization and SetActivityStreamsOrganization
// methods to access and set this property.
IsActivityStreamsOrganization() bool
// IsActivityStreamsPage returns true if this property has a type of
// "Page". When true, use the GetActivityStreamsPage and
// SetActivityStreamsPage methods to access and set this property.
IsActivityStreamsPage() bool
// IsActivityStreamsPerson returns true if this property has a type of
// "Person". When true, use the GetActivityStreamsPerson and
// SetActivityStreamsPerson methods to access and set this property.
IsActivityStreamsPerson() bool
// IsActivityStreamsPlace returns true if this property has a type of
// "Place". When true, use the GetActivityStreamsPlace and
// SetActivityStreamsPlace methods to access and set this property.
IsActivityStreamsPlace() bool
// IsActivityStreamsProfile returns true if this property has a type of
// "Profile". When true, use the GetActivityStreamsProfile and
// SetActivityStreamsProfile methods to access and set this property.
IsActivityStreamsProfile() bool
// IsActivityStreamsQuestion returns true if this property has a type of
// "Question". When true, use the GetActivityStreamsQuestion and
// SetActivityStreamsQuestion methods to access and set this property.
IsActivityStreamsQuestion() bool
// IsActivityStreamsRead returns true if this property has a type of
// "Read". When true, use the GetActivityStreamsRead and
// SetActivityStreamsRead methods to access and set this property.
IsActivityStreamsRead() bool
// IsActivityStreamsReject returns true if this property has a type of
// "Reject". When true, use the GetActivityStreamsReject and
// SetActivityStreamsReject methods to access and set this property.
IsActivityStreamsReject() bool
// IsActivityStreamsRelationship returns true if this property has a type
// of "Relationship". When true, use the
// GetActivityStreamsRelationship and SetActivityStreamsRelationship
// methods to access and set this property.
IsActivityStreamsRelationship() bool
// IsActivityStreamsRemove returns true if this property has a type of
// "Remove". When true, use the GetActivityStreamsRemove and
// SetActivityStreamsRemove methods to access and set this property.
IsActivityStreamsRemove() bool
// IsActivityStreamsService returns true if this property has a type of
// "Service". When true, use the GetActivityStreamsService and
// SetActivityStreamsService methods to access and set this property.
IsActivityStreamsService() bool
// IsActivityStreamsTentativeAccept returns true if this property has a
// type of "TentativeAccept". When true, use the
// GetActivityStreamsTentativeAccept and
// SetActivityStreamsTentativeAccept methods to access and set this
// property.
IsActivityStreamsTentativeAccept() bool
// IsActivityStreamsTentativeReject returns true if this property has a
// type of "TentativeReject". When true, use the
// GetActivityStreamsTentativeReject and
// SetActivityStreamsTentativeReject methods to access and set this
// property.
IsActivityStreamsTentativeReject() bool
// IsActivityStreamsTombstone returns true if this property has a type of
// "Tombstone". When true, use the GetActivityStreamsTombstone and
// SetActivityStreamsTombstone methods to access and set this property.
IsActivityStreamsTombstone() bool
// IsActivityStreamsTravel returns true if this property has a type of
// "Travel". When true, use the GetActivityStreamsTravel and
// SetActivityStreamsTravel methods to access and set this property.
IsActivityStreamsTravel() bool
// IsActivityStreamsUndo returns true if this property has a type of
// "Undo". When true, use the GetActivityStreamsUndo and
// SetActivityStreamsUndo methods to access and set this property.
IsActivityStreamsUndo() bool
// IsActivityStreamsUpdate returns true if this property has a type of
// "Update". When true, use the GetActivityStreamsUpdate and
// SetActivityStreamsUpdate methods to access and set this property.
IsActivityStreamsUpdate() bool
// IsActivityStreamsVideo returns true if this property has a type of
// "Video". When true, use the GetActivityStreamsVideo and
// SetActivityStreamsVideo methods to access and set this property.
IsActivityStreamsVideo() bool
// IsActivityStreamsView returns true if this property has a type of
// "View". When true, use the GetActivityStreamsView and
// SetActivityStreamsView methods to access and set this property.
IsActivityStreamsView() bool
// IsGoToSocialAnnounceApproval returns true if this property has a type
// of "AnnounceApproval". When true, use the
// GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval
// methods to access and set this property.
IsGoToSocialAnnounceApproval() bool
// IsGoToSocialLikeApproval returns true if this property has a type of
// "LikeApproval". When true, use the GetGoToSocialLikeApproval and
// SetGoToSocialLikeApproval methods to access and set this property.
IsGoToSocialLikeApproval() bool
// IsGoToSocialReplyApproval returns true if this property has a type of
// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and
// SetGoToSocialReplyApproval methods to access and set this property.
IsGoToSocialReplyApproval() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
IsSchemaPropertyValue() bool
// IsTootEmoji returns true if this property has a type of "Emoji". When
// true, use the GetTootEmoji and SetTootEmoji methods to access and
// set this property.
IsTootEmoji() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// IsTootIdentityProof returns true if this property has a type of
// "IdentityProof". When true, use the GetTootIdentityProof and
// SetTootIdentityProof methods to access and set this property.
IsTootIdentityProof() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsSubjectProperty) bool
// Name returns the name of this property: "subject".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsAccept sets the value of this property. Calling
// IsActivityStreamsAccept afterwards returns true.
SetActivityStreamsAccept(v ActivityStreamsAccept)
// SetActivityStreamsActivity sets the value of this property. Calling
// IsActivityStreamsActivity afterwards returns true.
SetActivityStreamsActivity(v ActivityStreamsActivity)
// SetActivityStreamsAdd sets the value of this property. Calling
// IsActivityStreamsAdd afterwards returns true.
SetActivityStreamsAdd(v ActivityStreamsAdd)
// SetActivityStreamsAnnounce sets the value of this property. Calling
// IsActivityStreamsAnnounce afterwards returns true.
SetActivityStreamsAnnounce(v ActivityStreamsAnnounce)
// SetActivityStreamsApplication sets the value of this property. Calling
// IsActivityStreamsApplication afterwards returns true.
SetActivityStreamsApplication(v ActivityStreamsApplication)
// SetActivityStreamsArrive sets the value of this property. Calling
// IsActivityStreamsArrive afterwards returns true.
SetActivityStreamsArrive(v ActivityStreamsArrive)
// SetActivityStreamsArticle sets the value of this property. Calling
// IsActivityStreamsArticle afterwards returns true.
SetActivityStreamsArticle(v ActivityStreamsArticle)
// SetActivityStreamsAudio sets the value of this property. Calling
// IsActivityStreamsAudio afterwards returns true.
SetActivityStreamsAudio(v ActivityStreamsAudio)
// SetActivityStreamsBlock sets the value of this property. Calling
// IsActivityStreamsBlock afterwards returns true.
SetActivityStreamsBlock(v ActivityStreamsBlock)
// SetActivityStreamsCollection sets the value of this property. Calling
// IsActivityStreamsCollection afterwards returns true.
SetActivityStreamsCollection(v ActivityStreamsCollection)
// SetActivityStreamsCollectionPage sets the value of this property.
// Calling IsActivityStreamsCollectionPage afterwards returns true.
SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage)
// SetActivityStreamsCreate sets the value of this property. Calling
// IsActivityStreamsCreate afterwards returns true.
SetActivityStreamsCreate(v ActivityStreamsCreate)
// SetActivityStreamsDelete sets the value of this property. Calling
// IsActivityStreamsDelete afterwards returns true.
SetActivityStreamsDelete(v ActivityStreamsDelete)
// SetActivityStreamsDislike sets the value of this property. Calling
// IsActivityStreamsDislike afterwards returns true.
SetActivityStreamsDislike(v ActivityStreamsDislike)
// SetActivityStreamsDocument sets the value of this property. Calling
// IsActivityStreamsDocument afterwards returns true.
SetActivityStreamsDocument(v ActivityStreamsDocument)
// SetActivityStreamsEvent sets the value of this property. Calling
// IsActivityStreamsEvent afterwards returns true.
SetActivityStreamsEvent(v ActivityStreamsEvent)
// SetActivityStreamsFlag sets the value of this property. Calling
// IsActivityStreamsFlag afterwards returns true.
SetActivityStreamsFlag(v ActivityStreamsFlag)
// SetActivityStreamsFollow sets the value of this property. Calling
// IsActivityStreamsFollow afterwards returns true.
SetActivityStreamsFollow(v ActivityStreamsFollow)
// SetActivityStreamsGroup sets the value of this property. Calling
// IsActivityStreamsGroup afterwards returns true.
SetActivityStreamsGroup(v ActivityStreamsGroup)
// SetActivityStreamsIgnore sets the value of this property. Calling
// IsActivityStreamsIgnore afterwards returns true.
SetActivityStreamsIgnore(v ActivityStreamsIgnore)
// SetActivityStreamsImage sets the value of this property. Calling
// IsActivityStreamsImage afterwards returns true.
SetActivityStreamsImage(v ActivityStreamsImage)
// SetActivityStreamsIntransitiveActivity sets the value of this property.
// Calling IsActivityStreamsIntransitiveActivity afterwards returns
// true.
SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity)
// SetActivityStreamsInvite sets the value of this property. Calling
// IsActivityStreamsInvite afterwards returns true.
SetActivityStreamsInvite(v ActivityStreamsInvite)
// SetActivityStreamsJoin sets the value of this property. Calling
// IsActivityStreamsJoin afterwards returns true.
SetActivityStreamsJoin(v ActivityStreamsJoin)
// SetActivityStreamsLeave sets the value of this property. Calling
// IsActivityStreamsLeave afterwards returns true.
SetActivityStreamsLeave(v ActivityStreamsLeave)
// SetActivityStreamsLike sets the value of this property. Calling
// IsActivityStreamsLike afterwards returns true.
SetActivityStreamsLike(v ActivityStreamsLike)
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsListen sets the value of this property. Calling
// IsActivityStreamsListen afterwards returns true.
SetActivityStreamsListen(v ActivityStreamsListen)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetActivityStreamsMove sets the value of this property. Calling
// IsActivityStreamsMove afterwards returns true.
SetActivityStreamsMove(v ActivityStreamsMove)
// SetActivityStreamsNote sets the value of this property. Calling
// IsActivityStreamsNote afterwards returns true.
SetActivityStreamsNote(v ActivityStreamsNote)
// SetActivityStreamsObject sets the value of this property. Calling
// IsActivityStreamsObject afterwards returns true.
SetActivityStreamsObject(v ActivityStreamsObject)
// SetActivityStreamsOffer sets the value of this property. Calling
// IsActivityStreamsOffer afterwards returns true.
SetActivityStreamsOffer(v ActivityStreamsOffer)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetActivityStreamsOrganization sets the value of this property. Calling
// IsActivityStreamsOrganization afterwards returns true.
SetActivityStreamsOrganization(v ActivityStreamsOrganization)
// SetActivityStreamsPage sets the value of this property. Calling
// IsActivityStreamsPage afterwards returns true.
SetActivityStreamsPage(v ActivityStreamsPage)
// SetActivityStreamsPerson sets the value of this property. Calling
// IsActivityStreamsPerson afterwards returns true.
SetActivityStreamsPerson(v ActivityStreamsPerson)
// SetActivityStreamsPlace sets the value of this property. Calling
// IsActivityStreamsPlace afterwards returns true.
SetActivityStreamsPlace(v ActivityStreamsPlace)
// SetActivityStreamsProfile sets the value of this property. Calling
// IsActivityStreamsProfile afterwards returns true.
SetActivityStreamsProfile(v ActivityStreamsProfile)
// SetActivityStreamsQuestion sets the value of this property. Calling
// IsActivityStreamsQuestion afterwards returns true.
SetActivityStreamsQuestion(v ActivityStreamsQuestion)
// SetActivityStreamsRead sets the value of this property. Calling
// IsActivityStreamsRead afterwards returns true.
SetActivityStreamsRead(v ActivityStreamsRead)
// SetActivityStreamsReject sets the value of this property. Calling
// IsActivityStreamsReject afterwards returns true.
SetActivityStreamsReject(v ActivityStreamsReject)
// SetActivityStreamsRelationship sets the value of this property. Calling
// IsActivityStreamsRelationship afterwards returns true.
SetActivityStreamsRelationship(v ActivityStreamsRelationship)
// SetActivityStreamsRemove sets the value of this property. Calling
// IsActivityStreamsRemove afterwards returns true.
SetActivityStreamsRemove(v ActivityStreamsRemove)
// SetActivityStreamsService sets the value of this property. Calling
// IsActivityStreamsService afterwards returns true.
SetActivityStreamsService(v ActivityStreamsService)
// SetActivityStreamsTentativeAccept sets the value of this property.
// Calling IsActivityStreamsTentativeAccept afterwards returns true.
SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept)
// SetActivityStreamsTentativeReject sets the value of this property.
// Calling IsActivityStreamsTentativeReject afterwards returns true.
SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject)
// SetActivityStreamsTombstone sets the value of this property. Calling
// IsActivityStreamsTombstone afterwards returns true.
SetActivityStreamsTombstone(v ActivityStreamsTombstone)
// SetActivityStreamsTravel sets the value of this property. Calling
// IsActivityStreamsTravel afterwards returns true.
SetActivityStreamsTravel(v ActivityStreamsTravel)
// SetActivityStreamsUndo sets the value of this property. Calling
// IsActivityStreamsUndo afterwards returns true.
SetActivityStreamsUndo(v ActivityStreamsUndo)
// SetActivityStreamsUpdate sets the value of this property. Calling
// IsActivityStreamsUpdate afterwards returns true.
SetActivityStreamsUpdate(v ActivityStreamsUpdate)
// SetActivityStreamsVideo sets the value of this property. Calling
// IsActivityStreamsVideo afterwards returns true.
SetActivityStreamsVideo(v ActivityStreamsVideo)
// SetActivityStreamsView sets the value of this property. Calling
// IsActivityStreamsView afterwards returns true.
SetActivityStreamsView(v ActivityStreamsView)
// SetGoToSocialAnnounceApproval sets the value of this property. Calling
// IsGoToSocialAnnounceApproval afterwards returns true.
SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval)
// SetGoToSocialLikeApproval sets the value of this property. Calling
// IsGoToSocialLikeApproval afterwards returns true.
SetGoToSocialLikeApproval(v GoToSocialLikeApproval)
// SetGoToSocialReplyApproval sets the value of this property. Calling
// IsGoToSocialReplyApproval afterwards returns true.
SetGoToSocialReplyApproval(v GoToSocialReplyApproval)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
SetSchemaPropertyValue(v SchemaPropertyValue)
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
// afterwards returns true.
SetTootEmoji(v TootEmoji)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetTootIdentityProof sets the value of this property. Calling
// IsTootIdentityProof afterwards returns true.
SetTootIdentityProof(v TootIdentityProof)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,200 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsSummaryPropertyIterator represents a single value for the
// "summary" property.
type ActivityStreamsSummaryPropertyIterator interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetLanguage returns the value for the specified BCP47 language code, or
// an empty string if it is either not a language map or no value is
// present.
GetLanguage(bcp47 string) string
// GetRDFLangString returns the value of this property. When
// IsRDFLangString returns false, GetRDFLangString will return an
// arbitrary value.
GetRDFLangString() map[string]string
// GetXMLSchemaString returns the value of this property. When
// IsXMLSchemaString returns false, GetXMLSchemaString will return an
// arbitrary value.
GetXMLSchemaString() string
// HasAny returns true if any of the values are set, except for the
// natural language map. When true, the specific has, getter, and
// setter methods may be used to determine what kind of value there is
// to access and set this property. To determine if the property was
// set as a natural language map, use the IsRDFLangString method
// instead.
HasAny() bool
// HasLanguage returns true if the natural language map has an entry for
// the specified BCP47 language code.
HasLanguage(bcp47 string) bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsRDFLangString returns true if this property has a type of
// "langString". When true, use the GetRDFLangString and
// SetRDFLangString methods to access and set this property.. To
// determine if the property was set as a natural language map, use
// the IsRDFLangString method instead.
IsRDFLangString() bool
// IsXMLSchemaString returns true if this property has a type of "string".
// When true, use the GetXMLSchemaString and SetXMLSchemaString
// methods to access and set this property.. To determine if the
// property was set as a natural language map, use the IsRDFLangString
// method instead.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsSummaryPropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsSummary".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsSummaryPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsSummaryPropertyIterator
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetLanguage sets the value for the specified BCP47 language code.
SetLanguage(bcp47, value string)
// SetRDFLangString sets the value of this property and clears the natural
// language map. Calling IsRDFLangString afterwards will return true.
// Calling IsRDFLangString afterwards returns false.
SetRDFLangString(v map[string]string)
// SetXMLSchemaString sets the value of this property and clears the
// natural language map. Calling IsXMLSchemaString afterwards will
// return true. Calling IsRDFLangString afterwards returns false.
SetXMLSchemaString(v string)
}
// A natural language summarization of the object encoded as HTML. Multiple
// language tagged summaries MAY be provided.
//
// Example 133 (https://www.w3.org/TR/activitystreams-vocabulary/#ex152-jsonld):
//
// {
// "name": "Cane Sugar Processing",
// "summary": "A simple \u003cem\u003enote\u003c/em\u003e",
// "type": "Note"
// }
//
// Example 134 (https://www.w3.org/TR/activitystreams-vocabulary/#ex153-jsonld):
//
// {
// "name": "Cane Sugar Processing",
// "summaryMap": {
// "en": "A simple \u003cem\u003enote\u003c/em\u003e",
// "es": "Una \u003cem\u003enota\u003c/em\u003e sencilla",
// "zh-hans": "一段\u003cem\u003e简单的\u003c/em\u003e笔记"
// },
// "type": "Note"
// }
type ActivityStreamsSummaryProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "summary"
AppendIRI(v *url.URL)
// AppendRDFLangString appends a langString value to the back of a list of
// the property "summary". Invalidates iterators that are traversing
// using Prev.
AppendRDFLangString(v map[string]string)
// AppendXMLSchemaString appends a string value to the back of a list of
// the property "summary". Invalidates iterators that are traversing
// using Prev.
AppendXMLSchemaString(v string)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsSummaryPropertyIterator
// 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.
Begin() ActivityStreamsSummaryPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsSummaryPropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "summary". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertRDFLangString inserts a langString value at the specified index
// for a property "summary". Existing elements at that index and
// higher are shifted back once. Invalidates all iterators.
InsertRDFLangString(idx int, v map[string]string)
// InsertXMLSchemaString inserts a string value at the specified index for
// a property "summary". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertXMLSchemaString(idx int, v 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "summary" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsSummaryProperty) bool
// Name returns the name of this property ("summary") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "summary".
PrependIRI(v *url.URL)
// PrependRDFLangString prepends a langString value to the front of a list
// of the property "summary". Invalidates all iterators.
PrependRDFLangString(v map[string]string)
// PrependXMLSchemaString prepends a string value to the front of a list
// of the property "summary". Invalidates all iterators.
PrependXMLSchemaString(v string)
// Remove deletes an element at the specified index from a list of the
// property "summary", regardless of its type. Panics if the index is
// out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// SetIRI sets an IRI value to be at the specified index for the property
// "summary". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetRDFLangString sets a langString value to be at the specified index
// for the property "summary". Panics if the index is out of bounds.
// Invalidates all iterators.
SetRDFLangString(idx int, v map[string]string)
// SetXMLSchemaString sets a string value to be at the specified index for
// the property "summary". Panics if the index is out of bounds.
// Invalidates all iterators.
SetXMLSchemaString(idx int, v string)
// Swap swaps the location of values at two indices for the "summary"
// property.
Swap(i, j int)
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,74 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// A non-negative integer specifying the total number of objects contained by the
// logical view of the collection. This number might not reflect the actual
// number of items serialized within the Collection object instance.
//
// Example 135 (https://www.w3.org/TR/activitystreams-vocabulary/#ex156-jsonld):
//
// {
// "items": [
// {
// "name": "Which Staircase Should I Use",
// "type": "Note"
// },
// {
// "name": "Something to Remember",
// "type": "Note"
// }
// ],
// "summary": "Sally's notes",
// "totalItems": 2,
// "type": "Collection"
// }
type ActivityStreamsTotalItemsProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaNonNegativeInteger afterwards will return false.
Clear()
// Get returns the value of this property. When
// IsXMLSchemaNonNegativeInteger returns false, Get will return any
// arbitrary value.
Get() int
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaNonNegativeInteger returns true if this property is set and
// not an IRI.
IsXMLSchemaNonNegativeInteger() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsTotalItemsProperty) bool
// Name returns the name of this property: "totalItems".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling
// IsXMLSchemaNonNegativeInteger afterwards will return true.
Set(v int)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,80 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Specifies the measurement units for the radius and altitude properties on a
// Place object. If not specified, the default is assumed to be "m" for
// "meters".
//
// Example 136 (https://www.w3.org/TR/activitystreams-vocabulary/#ex157-jsonld):
//
// {
// "latitude": 36.75,
// "longitude": 119.7667,
// "name": "Fresno Area",
// "radius": 15,
// "type": "Place",
// "units": "miles"
// }
type ActivityStreamsUnitsProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetXMLSchemaAnyURI returns the value of this property. When
// IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an
// arbitrary value.
GetXMLSchemaAnyURI() *url.URL
// GetXMLSchemaString returns the value of this property. When
// IsXMLSchemaString returns false, GetXMLSchemaString will return an
// arbitrary value.
GetXMLSchemaString() string
// HasAny returns true if any of the different values is set.
HasAny() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI".
// When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI
// methods to access and set this property.
IsXMLSchemaAnyURI() bool
// IsXMLSchemaString returns true if this property has a type of "string".
// When true, use the GetXMLSchemaString and SetXMLSchemaString
// methods to access and set this property.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsUnitsProperty) bool
// Name returns the name of this property: "units".
Name() string
// 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.
Serialize() (interface{}, error)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetXMLSchemaAnyURI sets the value of this property. Calling
// IsXMLSchemaAnyURI afterwards returns true.
SetXMLSchemaAnyURI(v *url.URL)
// SetXMLSchemaString sets the value of this property. Calling
// IsXMLSchemaString afterwards returns true.
SetXMLSchemaString(v string)
}

View file

@ -0,0 +1,64 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import (
"net/url"
"time"
)
// The date and time at which the object was updated
//
// Example 137 (https://www.w3.org/TR/activitystreams-vocabulary/#ex158-jsonld):
//
// {
// "content": "Mush it up so it does not have the same shape as the can.",
// "name": "Cranberry Sauce Idea",
// "type": "Note",
// "updated": "2014-12-12T12:12:12Z"
// }
type ActivityStreamsUpdatedProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaDateTime afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaDateTime
// returns false, Get will return any arbitrary value.
Get() time.Time
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaDateTime returns true if this property is set and not an IRI.
IsXMLSchemaDateTime() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsUpdatedProperty) bool
// Name returns the name of this property: "updated".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaDateTime
// afterwards will return true.
Set(v time.Time)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,272 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ActivityStreamsUrlPropertyIterator represents a single value for the "url"
// property.
type ActivityStreamsUrlPropertyIterator interface {
// GetActivityStreamsLink returns the value of this property. When
// IsActivityStreamsLink returns false, GetActivityStreamsLink will
// return an arbitrary value.
GetActivityStreamsLink() ActivityStreamsLink
// GetActivityStreamsMention returns the value of this property. When
// IsActivityStreamsMention returns false, GetActivityStreamsMention
// will return an arbitrary value.
GetActivityStreamsMention() ActivityStreamsMention
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// 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.
GetType() Type
// GetXMLSchemaAnyURI returns the value of this property. When
// IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an
// arbitrary value.
GetXMLSchemaAnyURI() *url.URL
// HasAny returns true if any of the different values is set.
HasAny() bool
// IsActivityStreamsLink returns true if this property has a type of
// "Link". When true, use the GetActivityStreamsLink and
// SetActivityStreamsLink methods to access and set this property.
IsActivityStreamsLink() bool
// IsActivityStreamsMention returns true if this property has a type of
// "Mention". When true, use the GetActivityStreamsMention and
// SetActivityStreamsMention methods to access and set this property.
IsActivityStreamsMention() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI".
// When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI
// methods to access and set this property.
IsXMLSchemaAnyURI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsUrlPropertyIterator) bool
// Name returns the name of this property: "ActivityStreamsUrl".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ActivityStreamsUrlPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ActivityStreamsUrlPropertyIterator
// SetActivityStreamsLink sets the value of this property. Calling
// IsActivityStreamsLink afterwards returns true.
SetActivityStreamsLink(v ActivityStreamsLink)
// SetActivityStreamsMention sets the value of this property. Calling
// IsActivityStreamsMention afterwards returns true.
SetActivityStreamsMention(v ActivityStreamsMention)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// 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.
SetType(t Type) error
// SetXMLSchemaAnyURI sets the value of this property. Calling
// IsXMLSchemaAnyURI afterwards returns true.
SetXMLSchemaAnyURI(v *url.URL)
}
// Identifies one or more links to representations of the object
//
// Example 109 (https://www.w3.org/TR/activitystreams-vocabulary/#ex124-jsonld):
//
// {
// "name": "4Q Sales Forecast",
// "type": "Document",
// "url": "http://example.org/4q-sales-forecast.pdf"
// }
//
// Example 110 (https://www.w3.org/TR/activitystreams-vocabulary/#ex125-jsonld):
//
// {
// "name": "4Q Sales Forecast",
// "type": "Document",
// "url": {
// "type": "owl:Class",
// "url": "http://example.org/4q-sales-forecast.pdf"
// }
// }
//
// Example 111 (https://www.w3.org/TR/activitystreams-vocabulary/#ex126-jsonld):
//
// {
// "name": "4Q Sales Forecast",
// "type": "Document",
// "url": [
// {
// "mediaType": "application/pdf",
// "type": "owl:Class",
// "url": "http://example.org/4q-sales-forecast.pdf"
// },
// {
// "mediaType": "text/html",
// "type": "owl:Class",
// "url": "http://example.org/4q-sales-forecast.html"
// }
// ]
// }
type ActivityStreamsUrlProperty interface {
// AppendActivityStreamsLink appends a Link value to the back of a list of
// the property "url". Invalidates iterators that are traversing using
// Prev.
AppendActivityStreamsLink(v ActivityStreamsLink)
// AppendActivityStreamsMention appends a Mention value to the back of a
// list of the property "url". Invalidates iterators that are
// traversing using Prev.
AppendActivityStreamsMention(v ActivityStreamsMention)
// AppendIRI appends an IRI value to the back of a list of the property
// "url"
AppendIRI(v *url.URL)
// AppendTootHashtag appends a Hashtag value to the back of a list of the
// property "url". Invalidates iterators that are traversing using
// Prev.
AppendTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "url". Invalidates iterators that are traversing using
// Prev. Returns an error if the type is not a valid one to set for
// this property.
AppendType(t Type) error
// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of
// the property "url". Invalidates iterators that are traversing using
// Prev.
AppendXMLSchemaAnyURI(v *url.URL)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) ActivityStreamsUrlPropertyIterator
// 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.
Begin() ActivityStreamsUrlPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() ActivityStreamsUrlPropertyIterator
// InsertActivityStreamsLink inserts a Link value at the specified index
// for a property "url". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertActivityStreamsLink(idx int, v ActivityStreamsLink)
// InsertActivityStreamsMention inserts a Mention value at the specified
// index for a property "url". Existing elements at that index and
// higher are shifted back once. Invalidates all iterators.
InsertActivityStreamsMention(idx int, v ActivityStreamsMention)
// Insert inserts an IRI value at the specified index for a property
// "url". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertTootHashtag inserts a Hashtag value at the specified index for a
// property "url". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertTootHashtag(idx int, v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "url". Invalidates all iterators. Returns an error if
// the type is not a valid one to set for this property.
InsertType(idx int, t Type) error
// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for
// a property "url". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertXMLSchemaAnyURI(idx int, v *url.URL)
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "url" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o ActivityStreamsUrlProperty) bool
// Name returns the name of this property ("url") with any alias.
Name() string
// PrependActivityStreamsLink prepends a Link value to the front of a list
// of the property "url". Invalidates all iterators.
PrependActivityStreamsLink(v ActivityStreamsLink)
// PrependActivityStreamsMention prepends a Mention value to the front of
// a list of the property "url". Invalidates all iterators.
PrependActivityStreamsMention(v ActivityStreamsMention)
// PrependIRI prepends an IRI value to the front of a list of the property
// "url".
PrependIRI(v *url.URL)
// PrependTootHashtag prepends a Hashtag value to the front of a list of
// the property "url". Invalidates all iterators.
PrependTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "url". Invalidates all iterators. Returns an error if
// the type is not a valid one to set for this property.
PrependType(t Type) error
// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list
// of the property "url". Invalidates all iterators.
PrependXMLSchemaAnyURI(v *url.URL)
// Remove deletes an element at the specified index from a list of the
// property "url", regardless of its type. Panics if the index is out
// of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsLink sets a Link value to be at the specified index
// for the property "url". Panics if the index is out of bounds.
// Invalidates all iterators.
SetActivityStreamsLink(idx int, v ActivityStreamsLink)
// SetActivityStreamsMention sets a Mention value to be at the specified
// index for the property "url". Panics if the index is out of bounds.
// Invalidates all iterators.
SetActivityStreamsMention(idx int, v ActivityStreamsMention)
// SetIRI sets an IRI value to be at the specified index for the property
// "url". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetTootHashtag sets a Hashtag value to be at the specified index for
// the property "url". Panics if the index is out of bounds.
// Invalidates all iterators.
SetTootHashtag(idx int, v TootHashtag)
// SetType sets an arbitrary type value to the specified index of the
// property "url". 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.
SetType(idx int, t Type) error
// SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for
// the property "url". Panics if the index is out of bounds.
// Invalidates all iterators.
SetXMLSchemaAnyURI(idx int, v *url.URL)
// Swap swaps the location of values at two indices for the "url" property.
Swap(i, j int)
}

View file

@ -0,0 +1,64 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// On a Link, specifies a hint as to the rendering width in device-independent
// pixels of the linked resource.
//
// Example 138 (https://www.w3.org/TR/activitystreams-vocabulary/#ex159-jsonld):
//
// {
// "height": 100,
// "type": "Link",
// "url": "http://example.org/image.png",
// "width": 100
// }
type ActivityStreamsWidthProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaNonNegativeInteger afterwards will return false.
Clear()
// Get returns the value of this property. When
// IsXMLSchemaNonNegativeInteger returns false, Get will return any
// arbitrary value.
Get() int
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaNonNegativeInteger returns true if this property is set and
// not an IRI.
IsXMLSchemaNonNegativeInteger() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o ActivityStreamsWidthProperty) bool
// Name returns the name of this property: "width".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling
// IsXMLSchemaNonNegativeInteger afterwards will return true.
Set(v int)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,130 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// GoToSocialAlwaysPropertyIterator represents a single value for the "always"
// property.
type GoToSocialAlwaysPropertyIterator interface {
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
// false, Get will return any arbitrary value.
Get() *url.URL
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
IsXMLSchemaAnyURI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o GoToSocialAlwaysPropertyIterator) bool
// Name returns the name of this property: "GoToSocialAlways".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() GoToSocialAlwaysPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() GoToSocialAlwaysPropertyIterator
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
// afterwards will return true.
Set(v *url.URL)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}
// Indicates zero or more URI/IDs that can perform an interaction without
// requiring approval by the Object AttributedTo Actor.
type GoToSocialAlwaysProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "always"
AppendIRI(v *url.URL)
// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of
// the property "always". Invalidates iterators that are traversing
// using Prev.
AppendXMLSchemaAnyURI(v *url.URL)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) GoToSocialAlwaysPropertyIterator
// 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.
Begin() GoToSocialAlwaysPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() GoToSocialAlwaysPropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "always". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for
// a property "always". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertXMLSchemaAnyURI(idx int, v *url.URL)
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "always" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o GoToSocialAlwaysProperty) bool
// Name returns the name of this property ("always") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "always".
PrependIRI(v *url.URL)
// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list
// of the property "always". Invalidates all iterators.
PrependXMLSchemaAnyURI(v *url.URL)
// Remove deletes an element at the specified index from a list of the
// property "always", regardless of its type. Panics if the index is
// out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a anyURI value to be at the specified index for the property
// "always". Panics if the index is out of bounds. Invalidates all
// iterators.
Set(idx int, v *url.URL)
// SetIRI sets an IRI value to be at the specified index for the property
// "always". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// Swap swaps the location of values at two indices for the "always"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,132 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// GoToSocialApprovalRequiredPropertyIterator represents a single value for the
// "approvalRequired" property.
type GoToSocialApprovalRequiredPropertyIterator interface {
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
// false, Get will return any arbitrary value.
Get() *url.URL
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
IsXMLSchemaAnyURI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o GoToSocialApprovalRequiredPropertyIterator) bool
// Name returns the name of this property: "GoToSocialApprovalRequired".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() GoToSocialApprovalRequiredPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() GoToSocialApprovalRequiredPropertyIterator
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
// afterwards will return true.
Set(v *url.URL)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}
// Indicates zero or more URI/IDs that require approval by the Object AttributedTo
// Actor in order to perform an interaction.
type GoToSocialApprovalRequiredProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "approvalRequired"
AppendIRI(v *url.URL)
// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of
// the property "approvalRequired". Invalidates iterators that are
// traversing using Prev.
AppendXMLSchemaAnyURI(v *url.URL)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) GoToSocialApprovalRequiredPropertyIterator
// 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.
Begin() GoToSocialApprovalRequiredPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() GoToSocialApprovalRequiredPropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "approvalRequired". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for
// a property "approvalRequired". Existing elements at that index and
// higher are shifted back once. Invalidates all iterators.
InsertXMLSchemaAnyURI(idx int, v *url.URL)
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "approvalRequired"
// property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o GoToSocialApprovalRequiredProperty) bool
// Name returns the name of this property ("approvalRequired") with any
// alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "approvalRequired".
PrependIRI(v *url.URL)
// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list
// of the property "approvalRequired". Invalidates all iterators.
PrependXMLSchemaAnyURI(v *url.URL)
// Remove deletes an element at the specified index from a list of the
// property "approvalRequired", regardless of its type. Panics if the
// index is out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a anyURI value to be at the specified index for the property
// "approvalRequired". Panics if the index is out of bounds.
// Invalidates all iterators.
Set(idx int, v *url.URL)
// SetIRI sets an IRI value to be at the specified index for the property
// "approvalRequired". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// Swap swaps the location of values at two indices for the
// "approvalRequired" property.
Swap(i, j int)
}

View file

@ -0,0 +1,56 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// URI/ID of an Accept Activity or approval, which itself points towards the ID of
// the Activity or Object to which this property is attached. The presence of
// this property on an Activity or Object indicates that an interaction has
// been Approve'd by the Actor whose Object this Activity or Object interacts
// with.
type GoToSocialApprovedByProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaAnyURI afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
// false, Get will return any arbitrary value.
Get() *url.URL
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
IsXMLSchemaAnyURI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o GoToSocialApprovedByProperty) bool
// Name returns the name of this property: "approvedBy".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
// afterwards will return true.
Set(v *url.URL)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,158 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// GoToSocialCanAnnouncePropertyIterator represents a single value for the
// "canAnnounce" property.
type GoToSocialCanAnnouncePropertyIterator interface {
// Get returns the value of this property. When IsGoToSocialCanAnnounce
// returns false, Get will return any arbitrary value.
Get() GoToSocialCanAnnounce
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsGoToSocialCanAnnounce returns true if this property is set and not an
// IRI.
IsGoToSocialCanAnnounce() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o GoToSocialCanAnnouncePropertyIterator) bool
// Name returns the name of this property: "GoToSocialCanAnnounce".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() GoToSocialCanAnnouncePropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() GoToSocialCanAnnouncePropertyIterator
// Set sets the value of this property. Calling IsGoToSocialCanAnnounce
// afterwards will return true.
Set(v GoToSocialCanAnnounce)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}
// Defines who can Announce with an object property set to the URI/ID of the
// Object to which this interactionPolicy is attached.
type GoToSocialCanAnnounceProperty interface {
// AppendGoToSocialCanAnnounce appends a CanAnnounce value to the back of
// a list of the property "canAnnounce". Invalidates iterators that
// are traversing using Prev.
AppendGoToSocialCanAnnounce(v GoToSocialCanAnnounce)
// AppendIRI appends an IRI value to the back of a list of the property
// "canAnnounce"
AppendIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "canAnnounce". Invalidates iterators that are
// traversing using Prev. Returns an error if the type is not a valid
// one to set for this property.
AppendType(t Type) error
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) GoToSocialCanAnnouncePropertyIterator
// 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.
Begin() GoToSocialCanAnnouncePropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() GoToSocialCanAnnouncePropertyIterator
// InsertGoToSocialCanAnnounce inserts a CanAnnounce value at the
// specified index for a property "canAnnounce". Existing elements at
// that index and higher are shifted back once. Invalidates all
// iterators.
InsertGoToSocialCanAnnounce(idx int, v GoToSocialCanAnnounce)
// Insert inserts an IRI value at the specified index for a property
// "canAnnounce". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "canAnnounce". Invalidates all iterators. Returns an
// error if the type is not a valid one to set for this property.
InsertType(idx int, t Type) error
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "canAnnounce"
// property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o GoToSocialCanAnnounceProperty) bool
// Name returns the name of this property ("canAnnounce") with any alias.
Name() string
// PrependGoToSocialCanAnnounce prepends a CanAnnounce value to the front
// of a list of the property "canAnnounce". Invalidates all iterators.
PrependGoToSocialCanAnnounce(v GoToSocialCanAnnounce)
// PrependIRI prepends an IRI value to the front of a list of the property
// "canAnnounce".
PrependIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "canAnnounce". Invalidates all iterators. Returns an
// error if the type is not a valid one to set for this property.
PrependType(t Type) error
// Remove deletes an element at the specified index from a list of the
// property "canAnnounce", regardless of its type. Panics if the index
// is out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a CanAnnounce value to be at the specified index for the
// property "canAnnounce". Panics if the index is out of bounds.
// Invalidates all iterators.
Set(idx int, v GoToSocialCanAnnounce)
// SetIRI sets an IRI value to be at the specified index for the property
// "canAnnounce". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetType sets an arbitrary type value to the specified index of the
// property "canAnnounce". 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.
SetType(idx int, t Type) error
// Swap swaps the location of values at two indices for the "canAnnounce"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,155 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// GoToSocialCanLikePropertyIterator represents a single value for the "canLike"
// property.
type GoToSocialCanLikePropertyIterator interface {
// Get returns the value of this property. When IsGoToSocialCanLike
// returns false, Get will return any arbitrary value.
Get() GoToSocialCanLike
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsGoToSocialCanLike returns true if this property is set and not an IRI.
IsGoToSocialCanLike() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o GoToSocialCanLikePropertyIterator) bool
// Name returns the name of this property: "GoToSocialCanLike".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() GoToSocialCanLikePropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() GoToSocialCanLikePropertyIterator
// Set sets the value of this property. Calling IsGoToSocialCanLike
// afterwards will return true.
Set(v GoToSocialCanLike)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}
// Defines who can Like with an object property set to the URI/ID of the Object to
// which this interactionPolicy is attached.
type GoToSocialCanLikeProperty interface {
// AppendGoToSocialCanLike appends a CanLike value to the back of a list
// of the property "canLike". Invalidates iterators that are
// traversing using Prev.
AppendGoToSocialCanLike(v GoToSocialCanLike)
// AppendIRI appends an IRI value to the back of a list of the property
// "canLike"
AppendIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "canLike". Invalidates iterators that are traversing
// using Prev. Returns an error if the type is not a valid one to set
// for this property.
AppendType(t Type) error
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) GoToSocialCanLikePropertyIterator
// 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.
Begin() GoToSocialCanLikePropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() GoToSocialCanLikePropertyIterator
// InsertGoToSocialCanLike inserts a CanLike value at the specified index
// for a property "canLike". Existing elements at that index and
// higher are shifted back once. Invalidates all iterators.
InsertGoToSocialCanLike(idx int, v GoToSocialCanLike)
// Insert inserts an IRI value at the specified index for a property
// "canLike". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "canLike". Invalidates all iterators. Returns an error
// if the type is not a valid one to set for this property.
InsertType(idx int, t Type) error
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "canLike" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o GoToSocialCanLikeProperty) bool
// Name returns the name of this property ("canLike") with any alias.
Name() string
// PrependGoToSocialCanLike prepends a CanLike value to the front of a
// list of the property "canLike". Invalidates all iterators.
PrependGoToSocialCanLike(v GoToSocialCanLike)
// PrependIRI prepends an IRI value to the front of a list of the property
// "canLike".
PrependIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "canLike". Invalidates all iterators. Returns an error
// if the type is not a valid one to set for this property.
PrependType(t Type) error
// Remove deletes an element at the specified index from a list of the
// property "canLike", regardless of its type. Panics if the index is
// out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a CanLike value to be at the specified index for the property
// "canLike". Panics if the index is out of bounds. Invalidates all
// iterators.
Set(idx int, v GoToSocialCanLike)
// SetIRI sets an IRI value to be at the specified index for the property
// "canLike". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetType sets an arbitrary type value to the specified index of the
// property "canLike". 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.
SetType(idx int, t Type) error
// Swap swaps the location of values at two indices for the "canLike"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,156 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// GoToSocialCanReplyPropertyIterator represents a single value for the "canReply"
// property.
type GoToSocialCanReplyPropertyIterator interface {
// Get returns the value of this property. When IsGoToSocialCanReply
// returns false, Get will return any arbitrary value.
Get() GoToSocialCanReply
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsGoToSocialCanReply returns true if this property is set and not an
// IRI.
IsGoToSocialCanReply() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o GoToSocialCanReplyPropertyIterator) bool
// Name returns the name of this property: "GoToSocialCanReply".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() GoToSocialCanReplyPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() GoToSocialCanReplyPropertyIterator
// Set sets the value of this property. Calling IsGoToSocialCanReply
// afterwards will return true.
Set(v GoToSocialCanReply)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}
// Defines who can Create a new Object with an inReplyTo property set to the
// URI/ID of the Object to which this interactionPolicy is attached.
type GoToSocialCanReplyProperty interface {
// AppendGoToSocialCanReply appends a CanReply value to the back of a list
// of the property "canReply". Invalidates iterators that are
// traversing using Prev.
AppendGoToSocialCanReply(v GoToSocialCanReply)
// AppendIRI appends an IRI value to the back of a list of the property
// "canReply"
AppendIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "canReply". Invalidates iterators that are traversing
// using Prev. Returns an error if the type is not a valid one to set
// for this property.
AppendType(t Type) error
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) GoToSocialCanReplyPropertyIterator
// 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.
Begin() GoToSocialCanReplyPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() GoToSocialCanReplyPropertyIterator
// InsertGoToSocialCanReply inserts a CanReply value at the specified
// index for a property "canReply". Existing elements at that index
// and higher are shifted back once. Invalidates all iterators.
InsertGoToSocialCanReply(idx int, v GoToSocialCanReply)
// Insert inserts an IRI value at the specified index for a property
// "canReply". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "canReply". Invalidates all iterators. Returns an
// error if the type is not a valid one to set for this property.
InsertType(idx int, t Type) error
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "canReply" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o GoToSocialCanReplyProperty) bool
// Name returns the name of this property ("canReply") with any alias.
Name() string
// PrependGoToSocialCanReply prepends a CanReply value to the front of a
// list of the property "canReply". Invalidates all iterators.
PrependGoToSocialCanReply(v GoToSocialCanReply)
// PrependIRI prepends an IRI value to the front of a list of the property
// "canReply".
PrependIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "canReply". Invalidates all iterators. Returns an
// error if the type is not a valid one to set for this property.
PrependType(t Type) error
// Remove deletes an element at the specified index from a list of the
// property "canReply", regardless of its type. Panics if the index is
// out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a CanReply value to be at the specified index for the property
// "canReply". Panics if the index is out of bounds. Invalidates all
// iterators.
Set(idx int, v GoToSocialCanReply)
// SetIRI sets an IRI value to be at the specified index for the property
// "canReply". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetType sets an arbitrary type value to the specified index of the
// property "canReply". 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.
SetType(idx int, t Type) error
// Swap swaps the location of values at two indices for the "canReply"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,164 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// GoToSocialInteractionPolicyPropertyIterator represents a single value for the
// "interactionPolicy" property.
type GoToSocialInteractionPolicyPropertyIterator interface {
// Get returns the value of this property. When
// IsGoToSocialInteractionPolicy returns false, Get will return any
// arbitrary value.
Get() GoToSocialInteractionPolicy
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsGoToSocialInteractionPolicy returns true if this property is set and
// not an IRI.
IsGoToSocialInteractionPolicy() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o GoToSocialInteractionPolicyPropertyIterator) bool
// Name returns the name of this property: "GoToSocialInteractionPolicy".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() GoToSocialInteractionPolicyPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() GoToSocialInteractionPolicyPropertyIterator
// Set sets the value of this property. Calling
// IsGoToSocialInteractionPolicy afterwards will return true.
Set(v GoToSocialInteractionPolicy)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}
// InteractionPolicy for an ActivityStreams Object.
//
// null
type GoToSocialInteractionPolicyProperty interface {
// AppendGoToSocialInteractionPolicy appends a InteractionPolicy value to
// the back of a list of the property "interactionPolicy". Invalidates
// iterators that are traversing using Prev.
AppendGoToSocialInteractionPolicy(v GoToSocialInteractionPolicy)
// AppendIRI appends an IRI value to the back of a list of the property
// "interactionPolicy"
AppendIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "interactionPolicy". Invalidates iterators that are
// traversing using Prev. Returns an error if the type is not a valid
// one to set for this property.
AppendType(t Type) error
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) GoToSocialInteractionPolicyPropertyIterator
// 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.
Begin() GoToSocialInteractionPolicyPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() GoToSocialInteractionPolicyPropertyIterator
// InsertGoToSocialInteractionPolicy inserts a InteractionPolicy value at
// the specified index for a property "interactionPolicy". Existing
// elements at that index and higher are shifted back once.
// Invalidates all iterators.
InsertGoToSocialInteractionPolicy(idx int, v GoToSocialInteractionPolicy)
// Insert inserts an IRI value at the specified index for a property
// "interactionPolicy". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "interactionPolicy". Invalidates all iterators.
// Returns an error if the type is not a valid one to set for this
// property.
InsertType(idx int, t Type) error
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "interactionPolicy"
// property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o GoToSocialInteractionPolicyProperty) bool
// Name returns the name of this property ("interactionPolicy") with any
// alias.
Name() string
// PrependGoToSocialInteractionPolicy prepends a InteractionPolicy value
// to the front of a list of the property "interactionPolicy".
// Invalidates all iterators.
PrependGoToSocialInteractionPolicy(v GoToSocialInteractionPolicy)
// PrependIRI prepends an IRI value to the front of a list of the property
// "interactionPolicy".
PrependIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "interactionPolicy". Invalidates all iterators.
// Returns an error if the type is not a valid one to set for this
// property.
PrependType(t Type) error
// Remove deletes an element at the specified index from a list of the
// property "interactionPolicy", regardless of its type. Panics if the
// index is out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a InteractionPolicy value to be at the specified index for the
// property "interactionPolicy". Panics if the index is out of bounds.
// Invalidates all iterators.
Set(idx int, v GoToSocialInteractionPolicy)
// SetIRI sets an IRI value to be at the specified index for the property
// "interactionPolicy". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetType sets an arbitrary type value to the specified index of the
// property "interactionPolicy". 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.
SetType(idx int, t Type) error
// Swap swaps the location of values at two indices for the
// "interactionPolicy" property.
Swap(i, j int)
}

View file

@ -0,0 +1,52 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Provides the globally unique identifier for JSON-LD entities.
type JSONLDIdProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaAnyURI afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
// false, Get will return any arbitrary value.
Get() *url.URL
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
IsXMLSchemaAnyURI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o JSONLDIdProperty) bool
// Name returns the name of this property: "id".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
// afterwards will return true.
Set(v *url.URL)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,158 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// JSONLDTypePropertyIterator represents a single value for the "type" property.
type JSONLDTypePropertyIterator interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetXMLSchemaAnyURI returns the value of this property. When
// IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an
// arbitrary value.
GetXMLSchemaAnyURI() *url.URL
// GetXMLSchemaString returns the value of this property. When
// IsXMLSchemaString returns false, GetXMLSchemaString will return an
// arbitrary value.
GetXMLSchemaString() string
// HasAny returns true if any of the different values is set.
HasAny() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI".
// When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI
// methods to access and set this property.
IsXMLSchemaAnyURI() bool
// IsXMLSchemaString returns true if this property has a type of "string".
// When true, use the GetXMLSchemaString and SetXMLSchemaString
// methods to access and set this property.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o JSONLDTypePropertyIterator) bool
// Name returns the name of this property: "JSONLDType".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() JSONLDTypePropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() JSONLDTypePropertyIterator
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetXMLSchemaAnyURI sets the value of this property. Calling
// IsXMLSchemaAnyURI afterwards returns true.
SetXMLSchemaAnyURI(v *url.URL)
// SetXMLSchemaString sets the value of this property. Calling
// IsXMLSchemaString afterwards returns true.
SetXMLSchemaString(v string)
}
// Identifies the schema type(s) of the JSON-LD entity.
type JSONLDTypeProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "type"
AppendIRI(v *url.URL)
// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of
// the property "type". Invalidates iterators that are traversing
// using Prev.
AppendXMLSchemaAnyURI(v *url.URL)
// AppendXMLSchemaString appends a string value to the back of a list of
// the property "type". Invalidates iterators that are traversing
// using Prev.
AppendXMLSchemaString(v string)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) JSONLDTypePropertyIterator
// 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.
Begin() JSONLDTypePropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() JSONLDTypePropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "type". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for
// a property "type". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertXMLSchemaAnyURI(idx int, v *url.URL)
// InsertXMLSchemaString inserts a string value at the specified index for
// a property "type". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertXMLSchemaString(idx int, v 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "type" property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o JSONLDTypeProperty) bool
// Name returns the name of this property ("type") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "type".
PrependIRI(v *url.URL)
// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list
// of the property "type". Invalidates all iterators.
PrependXMLSchemaAnyURI(v *url.URL)
// PrependXMLSchemaString prepends a string value to the front of a list
// of the property "type". Invalidates all iterators.
PrependXMLSchemaString(v string)
// Remove deletes an element at the specified index from a list of the
// property "type", regardless of its type. Panics if the index is out
// of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// SetIRI sets an IRI value to be at the specified index for the property
// "type". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for
// the property "type". Panics if the index is out of bounds.
// Invalidates all iterators.
SetXMLSchemaAnyURI(idx int, v *url.URL)
// SetXMLSchemaString sets a string value to be at the specified index for
// the property "type". Panics if the index is out of bounds.
// Invalidates all iterators.
SetXMLSchemaString(idx int, v string)
// Swap swaps the location of values at two indices for the "type"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,52 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// The value of the quantitative value or property value node.
type SchemaValueProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaString afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaString returns
// false, Get will return any arbitrary value.
Get() string
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaString returns true if this property is set and not an IRI.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o SchemaValueProperty) bool
// Name returns the name of this property: "value".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaString
// afterwards will return true.
Set(v string)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,52 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// null
type TootBlurhashProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaString afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaString returns
// false, Get will return any arbitrary value.
Get() string
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaString returns true if this property is set and not an IRI.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o TootBlurhashProperty) bool
// Name returns the name of this property: "blurhash".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaString
// afterwards will return true.
Set(v string)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,52 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// null
type TootDiscoverableProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaBoolean afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaBoolean returns
// false, Get will return any arbitrary value.
Get() bool
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaBoolean returns true if this property is set and not an IRI.
IsXMLSchemaBoolean() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o TootDiscoverableProperty) bool
// Name returns the name of this property: "discoverable".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaBoolean
// afterwards will return true.
Set(v bool)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,80 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// null
type TootFeaturedProperty interface {
// Clear ensures no value of this property is set. Calling HasAny or any
// of the 'Is' methods afterwards will return false.
Clear()
// GetActivityStreamsOrderedCollection returns the value of this property.
// When IsActivityStreamsOrderedCollection returns false,
// GetActivityStreamsOrderedCollection will return an arbitrary value.
GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection
// GetActivityStreamsOrderedCollectionPage returns the value of this
// property. When IsActivityStreamsOrderedCollectionPage returns
// false, GetActivityStreamsOrderedCollectionPage will return an
// arbitrary value.
GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if any of the different values is set.
HasAny() 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.
IsActivityStreamsOrderedCollection() 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.
IsActivityStreamsOrderedCollectionPage() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o TootFeaturedProperty) bool
// Name returns the name of this property: "featured".
Name() string
// 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.
Serialize() (interface{}, error)
// SetActivityStreamsOrderedCollection sets the value of this property.
// Calling IsActivityStreamsOrderedCollection afterwards returns true.
SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection)
// SetActivityStreamsOrderedCollectionPage sets the value of this
// property. Calling IsActivityStreamsOrderedCollectionPage afterwards
// returns true.
SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}

View file

@ -0,0 +1,52 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// null
type TootSignatureAlgorithmProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaString afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaString returns
// false, Get will return any arbitrary value.
Get() string
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaString returns true if this property is set and not an IRI.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o TootSignatureAlgorithmProperty) bool
// Name returns the name of this property: "signatureAlgorithm".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaString
// afterwards will return true.
Set(v string)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,52 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// null
type TootSignatureValueProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaString afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaString returns
// false, Get will return any arbitrary value.
Get() string
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaString returns true if this property is set and not an IRI.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o TootSignatureValueProperty) bool
// Name returns the name of this property: "signatureValue".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaString
// afterwards will return true.
Set(v string)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,54 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// null
type TootVotersCountProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaNonNegativeInteger afterwards will return false.
Clear()
// Get returns the value of this property. When
// IsXMLSchemaNonNegativeInteger returns false, Get will return any
// arbitrary value.
Get() int
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaNonNegativeInteger returns true if this property is set and
// not an IRI.
IsXMLSchemaNonNegativeInteger() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o TootVotersCountProperty) bool
// Name returns the name of this property: "votersCount".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling
// IsXMLSchemaNonNegativeInteger afterwards will return true.
Set(v int)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,52 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// The owner of the public key for an ActivityStreams actor
type W3IDSecurityV1OwnerProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaAnyURI afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
// false, Get will return any arbitrary value.
Get() *url.URL
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
IsXMLSchemaAnyURI() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o W3IDSecurityV1OwnerProperty) bool
// Name returns the name of this property: "owner".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
// afterwards will return true.
Set(v *url.URL)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,52 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// The public key PEM encoded data for an ActivityStreams actor
type W3IDSecurityV1PublicKeyPemProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaString afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaString returns
// false, Get will return any arbitrary value.
Get() string
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaString returns true if this property is set and not an IRI.
IsXMLSchemaString() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o W3IDSecurityV1PublicKeyPemProperty) bool
// Name returns the name of this property: "publicKeyPem".
Name() string
// 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.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaString
// afterwards will return true.
Set(v string)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -0,0 +1,159 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// W3IDSecurityV1PublicKeyPropertyIterator represents a single value for the
// "publicKey" property.
type W3IDSecurityV1PublicKeyPropertyIterator interface {
// Get returns the value of this property. When IsW3IDSecurityV1PublicKey
// returns false, Get will return any arbitrary value.
Get() W3IDSecurityV1PublicKey
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// 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.
GetType() Type
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsW3IDSecurityV1PublicKey returns true if this property is set and not
// an IRI.
IsW3IDSecurityV1PublicKey() bool
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex() int
// 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.
LessThan(o W3IDSecurityV1PublicKeyPropertyIterator) bool
// Name returns the name of this property: "W3IDSecurityV1PublicKey".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() W3IDSecurityV1PublicKeyPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() W3IDSecurityV1PublicKeyPropertyIterator
// Set sets the value of this property. Calling IsW3IDSecurityV1PublicKey
// afterwards will return true.
Set(v W3IDSecurityV1PublicKey)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
// 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.
SetType(t Type) error
}
// The public key for an ActivityStreams actor
//
// null
type W3IDSecurityV1PublicKeyProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "publicKey"
AppendIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "publicKey". Invalidates iterators that are traversing
// using Prev. Returns an error if the type is not a valid one to set
// for this property.
AppendType(t Type) error
// AppendW3IDSecurityV1PublicKey appends a PublicKey value to the back of
// a list of the property "publicKey". Invalidates iterators that are
// traversing using Prev.
AppendW3IDSecurityV1PublicKey(v W3IDSecurityV1PublicKey)
// At returns the property value for the specified index. Panics if the
// index is out of bounds.
At(index int) W3IDSecurityV1PublicKeyPropertyIterator
// 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.
Begin() W3IDSecurityV1PublicKeyPropertyIterator
// Empty returns returns true if there are no elements.
Empty() bool
// 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.
End() W3IDSecurityV1PublicKeyPropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "publicKey". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "publicKey". Invalidates all iterators. Returns an
// error if the type is not a valid one to set for this property.
InsertType(idx int, t Type) error
// InsertW3IDSecurityV1PublicKey inserts a PublicKey value at the
// specified index for a property "publicKey". Existing elements at
// that index and higher are shifted back once. Invalidates all
// iterators.
InsertW3IDSecurityV1PublicKey(idx int, v W3IDSecurityV1PublicKey)
// 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.
JSONLDContext() map[string]string
// 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.
KindIndex(idx int) int
// Len returns the number of values that exist for the "publicKey"
// property.
Len() (length int)
// Less computes whether another property is less than this one. Mixing
// types results in a consistent but arbitrary ordering
Less(i, j int) bool
// 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.
LessThan(o W3IDSecurityV1PublicKeyProperty) bool
// Name returns the name of this property ("publicKey") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "publicKey".
PrependIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "publicKey". Invalidates all iterators. Returns an
// error if the type is not a valid one to set for this property.
PrependType(t Type) error
// PrependW3IDSecurityV1PublicKey prepends a PublicKey value to the front
// of a list of the property "publicKey". Invalidates all iterators.
PrependW3IDSecurityV1PublicKey(v W3IDSecurityV1PublicKey)
// Remove deletes an element at the specified index from a list of the
// property "publicKey", regardless of its type. Panics if the index
// is out of bounds. Invalidates all iterators.
Remove(idx int)
// 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.
Serialize() (interface{}, error)
// Set sets a PublicKey value to be at the specified index for the
// property "publicKey". Panics if the index is out of bounds.
// Invalidates all iterators.
Set(idx int, v W3IDSecurityV1PublicKey)
// SetIRI sets an IRI value to be at the specified index for the property
// "publicKey". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetType sets an arbitrary type value to the specified index of the
// property "publicKey". 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.
SetType(idx int, t Type) error
// Swap swaps the location of values at two indices for the "publicKey"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,265 @@
// Code generated by astool. DO NOT EDIT.
package vocab
// 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.
//
// Example 9 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7a-jsonld):
//
// {
// "actor": {
// "name": "Sally",
// "type": "Person"
// },
// "object": {
// "actor": "http://john.example.org",
// "object": {
// "name": "Going-Away Party for Jim",
// "type": "Event"
// },
// "type": "Invite"
// },
// "summary": "Sally accepted an invitation to a party",
// "type": "Accept"
// }
//
// Example 10 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7b-jsonld):
//
// {
// "actor": {
// "name": "Sally",
// "type": "Person"
// },
// "object": {
// "name": "Joe",
// "type": "Person"
// },
// "summary": "Sally accepted Joe into the club",
// "target": {
// "name": "The Club",
// "type": "Group"
// },
// "type": "Accept"
// }
type ActivityStreamsAccept interface {
// GetActivityStreamsActor returns the "actor" property if it exists, and
// nil otherwise.
GetActivityStreamsActor() ActivityStreamsActorProperty
// GetActivityStreamsAltitude returns the "altitude" property if it
// exists, and nil otherwise.
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
// GetActivityStreamsAttachment returns the "attachment" property if it
// exists, and nil otherwise.
GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty
// GetActivityStreamsAttributedTo returns the "attributedTo" property if
// it exists, and nil otherwise.
GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty
// GetActivityStreamsAudience returns the "audience" property if it
// exists, and nil otherwise.
GetActivityStreamsAudience() ActivityStreamsAudienceProperty
// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
// otherwise.
GetActivityStreamsBcc() ActivityStreamsBccProperty
// GetActivityStreamsBto returns the "bto" property if it exists, and nil
// otherwise.
GetActivityStreamsBto() ActivityStreamsBtoProperty
// GetActivityStreamsCc returns the "cc" property if it exists, and nil
// otherwise.
GetActivityStreamsCc() ActivityStreamsCcProperty
// GetActivityStreamsContent returns the "content" property if it exists,
// and nil otherwise.
GetActivityStreamsContent() ActivityStreamsContentProperty
// GetActivityStreamsContext returns the "context" property if it exists,
// and nil otherwise.
GetActivityStreamsContext() ActivityStreamsContextProperty
// GetActivityStreamsDuration returns the "duration" property if it
// exists, and nil otherwise.
GetActivityStreamsDuration() ActivityStreamsDurationProperty
// GetActivityStreamsEndTime returns the "endTime" property if it exists,
// and nil otherwise.
GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty
// GetActivityStreamsGenerator returns the "generator" property if it
// exists, and nil otherwise.
GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty
// GetActivityStreamsIcon returns the "icon" property if it exists, and
// nil otherwise.
GetActivityStreamsIcon() ActivityStreamsIconProperty
// GetActivityStreamsImage returns the "image" property if it exists, and
// nil otherwise.
GetActivityStreamsImage() ActivityStreamsImageProperty
// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it
// exists, and nil otherwise.
GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty
// GetActivityStreamsInstrument returns the "instrument" property if it
// exists, and nil otherwise.
GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty
// GetActivityStreamsLikes returns the "likes" property if it exists, and
// nil otherwise.
GetActivityStreamsLikes() ActivityStreamsLikesProperty
// GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
// GetActivityStreamsName returns the "name" property if it exists, and
// nil otherwise.
GetActivityStreamsName() ActivityStreamsNameProperty
// GetActivityStreamsObject returns the "object" property if it exists,
// and nil otherwise.
GetActivityStreamsObject() ActivityStreamsObjectProperty
// GetActivityStreamsOrigin returns the "origin" property if it exists,
// and nil otherwise.
GetActivityStreamsOrigin() ActivityStreamsOriginProperty
// GetActivityStreamsPreview returns the "preview" property if it exists,
// and nil otherwise.
GetActivityStreamsPreview() ActivityStreamsPreviewProperty
// GetActivityStreamsPublished returns the "published" property if it
// exists, and nil otherwise.
GetActivityStreamsPublished() ActivityStreamsPublishedProperty
// GetActivityStreamsReplies returns the "replies" property if it exists,
// and nil otherwise.
GetActivityStreamsReplies() ActivityStreamsRepliesProperty
// GetActivityStreamsResult returns the "result" property if it exists,
// and nil otherwise.
GetActivityStreamsResult() ActivityStreamsResultProperty
// GetActivityStreamsSensitive returns the "sensitive" property if it
// exists, and nil otherwise.
GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty
// GetActivityStreamsShares returns the "shares" property if it exists,
// and nil otherwise.
GetActivityStreamsShares() ActivityStreamsSharesProperty
// GetActivityStreamsSource returns the "source" property if it exists,
// and nil otherwise.
GetActivityStreamsSource() ActivityStreamsSourceProperty
// GetActivityStreamsStartTime returns the "startTime" property if it
// exists, and nil otherwise.
GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty
// GetActivityStreamsSummary returns the "summary" property if it exists,
// and nil otherwise.
GetActivityStreamsSummary() ActivityStreamsSummaryProperty
// GetActivityStreamsTag returns the "tag" property if it exists, and nil
// otherwise.
GetActivityStreamsTag() ActivityStreamsTagProperty
// GetActivityStreamsTarget returns the "target" property if it exists,
// and nil otherwise.
GetActivityStreamsTarget() ActivityStreamsTargetProperty
// GetActivityStreamsTo returns the "to" property if it exists, and nil
// otherwise.
GetActivityStreamsTo() ActivityStreamsToProperty
// GetActivityStreamsUpdated returns the "updated" property if it exists,
// and nil otherwise.
GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
GetJSONLDId() JSONLDIdProperty
// GetJSONLDType returns the "type" property if it exists, and nil
// otherwise.
GetJSONLDType() JSONLDTypeProperty
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Accept
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the
// 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.
GetUnknownProperties() map[string]interface{}
// IsExtending returns true if the Accept type extends from the other type.
IsExtending(other Type) bool
// 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.
JSONLDContext() map[string]string
// LessThan computes if this Accept is lesser, with an arbitrary but
// stable determination.
LessThan(o ActivityStreamsAccept) bool
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format.
Serialize() (map[string]interface{}, error)
// SetActivityStreamsActor sets the "actor" property.
SetActivityStreamsActor(i ActivityStreamsActorProperty)
// SetActivityStreamsAltitude sets the "altitude" property.
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
// SetActivityStreamsAttachment sets the "attachment" property.
SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty)
// SetActivityStreamsAttributedTo sets the "attributedTo" property.
SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty)
// SetActivityStreamsAudience sets the "audience" property.
SetActivityStreamsAudience(i ActivityStreamsAudienceProperty)
// SetActivityStreamsBcc sets the "bcc" property.
SetActivityStreamsBcc(i ActivityStreamsBccProperty)
// SetActivityStreamsBto sets the "bto" property.
SetActivityStreamsBto(i ActivityStreamsBtoProperty)
// SetActivityStreamsCc sets the "cc" property.
SetActivityStreamsCc(i ActivityStreamsCcProperty)
// SetActivityStreamsContent sets the "content" property.
SetActivityStreamsContent(i ActivityStreamsContentProperty)
// SetActivityStreamsContext sets the "context" property.
SetActivityStreamsContext(i ActivityStreamsContextProperty)
// SetActivityStreamsDuration sets the "duration" property.
SetActivityStreamsDuration(i ActivityStreamsDurationProperty)
// SetActivityStreamsEndTime sets the "endTime" property.
SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty)
// SetActivityStreamsGenerator sets the "generator" property.
SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty)
// SetActivityStreamsIcon sets the "icon" property.
SetActivityStreamsIcon(i ActivityStreamsIconProperty)
// SetActivityStreamsImage sets the "image" property.
SetActivityStreamsImage(i ActivityStreamsImageProperty)
// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty)
// SetActivityStreamsInstrument sets the "instrument" property.
SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty)
// SetActivityStreamsLikes sets the "likes" property.
SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property.
SetActivityStreamsName(i ActivityStreamsNameProperty)
// SetActivityStreamsObject sets the "object" property.
SetActivityStreamsObject(i ActivityStreamsObjectProperty)
// SetActivityStreamsOrigin sets the "origin" property.
SetActivityStreamsOrigin(i ActivityStreamsOriginProperty)
// SetActivityStreamsPreview sets the "preview" property.
SetActivityStreamsPreview(i ActivityStreamsPreviewProperty)
// SetActivityStreamsPublished sets the "published" property.
SetActivityStreamsPublished(i ActivityStreamsPublishedProperty)
// SetActivityStreamsReplies sets the "replies" property.
SetActivityStreamsReplies(i ActivityStreamsRepliesProperty)
// SetActivityStreamsResult sets the "result" property.
SetActivityStreamsResult(i ActivityStreamsResultProperty)
// SetActivityStreamsSensitive sets the "sensitive" property.
SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty)
// SetActivityStreamsShares sets the "shares" property.
SetActivityStreamsShares(i ActivityStreamsSharesProperty)
// SetActivityStreamsSource sets the "source" property.
SetActivityStreamsSource(i ActivityStreamsSourceProperty)
// SetActivityStreamsStartTime sets the "startTime" property.
SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty)
// SetActivityStreamsSummary sets the "summary" property.
SetActivityStreamsSummary(i ActivityStreamsSummaryProperty)
// SetActivityStreamsTag sets the "tag" property.
SetActivityStreamsTag(i ActivityStreamsTagProperty)
// SetActivityStreamsTarget sets the "target" property.
SetActivityStreamsTarget(i ActivityStreamsTargetProperty)
// SetActivityStreamsTo sets the "to" property.
SetActivityStreamsTo(i ActivityStreamsToProperty)
// SetActivityStreamsUpdated sets the "updated" property.
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
// SetActivityStreamsUrl sets the "url" property.
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
// SetJSONLDId sets the "id" property.
SetJSONLDId(i JSONLDIdProperty)
// SetJSONLDType sets the "type" property.
SetJSONLDType(i JSONLDTypeProperty)
// VocabularyURI returns the vocabulary's URI as a string.
VocabularyURI() string
}

View file

@ -0,0 +1,245 @@
// Code generated by astool. DO NOT EDIT.
package vocab
// 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.
//
// Example 3 (https://www.w3.org/TR/activitystreams-vocabulary/#ex3-jsonld):
//
// {
// "actor": {
// "name": "Sally",
// "type": "Person"
// },
// "object": {
// "name": "A Note",
// "type": "Note"
// },
// "summary": "Sally did something to a note",
// "type": "Activity"
// }
type ActivityStreamsActivity interface {
// GetActivityStreamsActor returns the "actor" property if it exists, and
// nil otherwise.
GetActivityStreamsActor() ActivityStreamsActorProperty
// GetActivityStreamsAltitude returns the "altitude" property if it
// exists, and nil otherwise.
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
// GetActivityStreamsAttachment returns the "attachment" property if it
// exists, and nil otherwise.
GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty
// GetActivityStreamsAttributedTo returns the "attributedTo" property if
// it exists, and nil otherwise.
GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty
// GetActivityStreamsAudience returns the "audience" property if it
// exists, and nil otherwise.
GetActivityStreamsAudience() ActivityStreamsAudienceProperty
// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
// otherwise.
GetActivityStreamsBcc() ActivityStreamsBccProperty
// GetActivityStreamsBto returns the "bto" property if it exists, and nil
// otherwise.
GetActivityStreamsBto() ActivityStreamsBtoProperty
// GetActivityStreamsCc returns the "cc" property if it exists, and nil
// otherwise.
GetActivityStreamsCc() ActivityStreamsCcProperty
// GetActivityStreamsContent returns the "content" property if it exists,
// and nil otherwise.
GetActivityStreamsContent() ActivityStreamsContentProperty
// GetActivityStreamsContext returns the "context" property if it exists,
// and nil otherwise.
GetActivityStreamsContext() ActivityStreamsContextProperty
// GetActivityStreamsDuration returns the "duration" property if it
// exists, and nil otherwise.
GetActivityStreamsDuration() ActivityStreamsDurationProperty
// GetActivityStreamsEndTime returns the "endTime" property if it exists,
// and nil otherwise.
GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty
// GetActivityStreamsGenerator returns the "generator" property if it
// exists, and nil otherwise.
GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty
// GetActivityStreamsIcon returns the "icon" property if it exists, and
// nil otherwise.
GetActivityStreamsIcon() ActivityStreamsIconProperty
// GetActivityStreamsImage returns the "image" property if it exists, and
// nil otherwise.
GetActivityStreamsImage() ActivityStreamsImageProperty
// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it
// exists, and nil otherwise.
GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty
// GetActivityStreamsInstrument returns the "instrument" property if it
// exists, and nil otherwise.
GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty
// GetActivityStreamsLikes returns the "likes" property if it exists, and
// nil otherwise.
GetActivityStreamsLikes() ActivityStreamsLikesProperty
// GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
// GetActivityStreamsName returns the "name" property if it exists, and
// nil otherwise.
GetActivityStreamsName() ActivityStreamsNameProperty
// GetActivityStreamsObject returns the "object" property if it exists,
// and nil otherwise.
GetActivityStreamsObject() ActivityStreamsObjectProperty
// GetActivityStreamsOrigin returns the "origin" property if it exists,
// and nil otherwise.
GetActivityStreamsOrigin() ActivityStreamsOriginProperty
// GetActivityStreamsPreview returns the "preview" property if it exists,
// and nil otherwise.
GetActivityStreamsPreview() ActivityStreamsPreviewProperty
// GetActivityStreamsPublished returns the "published" property if it
// exists, and nil otherwise.
GetActivityStreamsPublished() ActivityStreamsPublishedProperty
// GetActivityStreamsReplies returns the "replies" property if it exists,
// and nil otherwise.
GetActivityStreamsReplies() ActivityStreamsRepliesProperty
// GetActivityStreamsResult returns the "result" property if it exists,
// and nil otherwise.
GetActivityStreamsResult() ActivityStreamsResultProperty
// GetActivityStreamsSensitive returns the "sensitive" property if it
// exists, and nil otherwise.
GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty
// GetActivityStreamsShares returns the "shares" property if it exists,
// and nil otherwise.
GetActivityStreamsShares() ActivityStreamsSharesProperty
// GetActivityStreamsSource returns the "source" property if it exists,
// and nil otherwise.
GetActivityStreamsSource() ActivityStreamsSourceProperty
// GetActivityStreamsStartTime returns the "startTime" property if it
// exists, and nil otherwise.
GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty
// GetActivityStreamsSummary returns the "summary" property if it exists,
// and nil otherwise.
GetActivityStreamsSummary() ActivityStreamsSummaryProperty
// GetActivityStreamsTag returns the "tag" property if it exists, and nil
// otherwise.
GetActivityStreamsTag() ActivityStreamsTagProperty
// GetActivityStreamsTarget returns the "target" property if it exists,
// and nil otherwise.
GetActivityStreamsTarget() ActivityStreamsTargetProperty
// GetActivityStreamsTo returns the "to" property if it exists, and nil
// otherwise.
GetActivityStreamsTo() ActivityStreamsToProperty
// GetActivityStreamsUpdated returns the "updated" property if it exists,
// and nil otherwise.
GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
GetJSONLDId() JSONLDIdProperty
// GetJSONLDType returns the "type" property if it exists, and nil
// otherwise.
GetJSONLDType() JSONLDTypeProperty
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Activity
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the
// 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.
GetUnknownProperties() map[string]interface{}
// IsExtending returns true if the Activity type extends from the other
// type.
IsExtending(other Type) bool
// 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.
JSONLDContext() map[string]string
// LessThan computes if this Activity is lesser, with an arbitrary but
// stable determination.
LessThan(o ActivityStreamsActivity) bool
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format.
Serialize() (map[string]interface{}, error)
// SetActivityStreamsActor sets the "actor" property.
SetActivityStreamsActor(i ActivityStreamsActorProperty)
// SetActivityStreamsAltitude sets the "altitude" property.
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
// SetActivityStreamsAttachment sets the "attachment" property.
SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty)
// SetActivityStreamsAttributedTo sets the "attributedTo" property.
SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty)
// SetActivityStreamsAudience sets the "audience" property.
SetActivityStreamsAudience(i ActivityStreamsAudienceProperty)
// SetActivityStreamsBcc sets the "bcc" property.
SetActivityStreamsBcc(i ActivityStreamsBccProperty)
// SetActivityStreamsBto sets the "bto" property.
SetActivityStreamsBto(i ActivityStreamsBtoProperty)
// SetActivityStreamsCc sets the "cc" property.
SetActivityStreamsCc(i ActivityStreamsCcProperty)
// SetActivityStreamsContent sets the "content" property.
SetActivityStreamsContent(i ActivityStreamsContentProperty)
// SetActivityStreamsContext sets the "context" property.
SetActivityStreamsContext(i ActivityStreamsContextProperty)
// SetActivityStreamsDuration sets the "duration" property.
SetActivityStreamsDuration(i ActivityStreamsDurationProperty)
// SetActivityStreamsEndTime sets the "endTime" property.
SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty)
// SetActivityStreamsGenerator sets the "generator" property.
SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty)
// SetActivityStreamsIcon sets the "icon" property.
SetActivityStreamsIcon(i ActivityStreamsIconProperty)
// SetActivityStreamsImage sets the "image" property.
SetActivityStreamsImage(i ActivityStreamsImageProperty)
// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty)
// SetActivityStreamsInstrument sets the "instrument" property.
SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty)
// SetActivityStreamsLikes sets the "likes" property.
SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property.
SetActivityStreamsName(i ActivityStreamsNameProperty)
// SetActivityStreamsObject sets the "object" property.
SetActivityStreamsObject(i ActivityStreamsObjectProperty)
// SetActivityStreamsOrigin sets the "origin" property.
SetActivityStreamsOrigin(i ActivityStreamsOriginProperty)
// SetActivityStreamsPreview sets the "preview" property.
SetActivityStreamsPreview(i ActivityStreamsPreviewProperty)
// SetActivityStreamsPublished sets the "published" property.
SetActivityStreamsPublished(i ActivityStreamsPublishedProperty)
// SetActivityStreamsReplies sets the "replies" property.
SetActivityStreamsReplies(i ActivityStreamsRepliesProperty)
// SetActivityStreamsResult sets the "result" property.
SetActivityStreamsResult(i ActivityStreamsResultProperty)
// SetActivityStreamsSensitive sets the "sensitive" property.
SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty)
// SetActivityStreamsShares sets the "shares" property.
SetActivityStreamsShares(i ActivityStreamsSharesProperty)
// SetActivityStreamsSource sets the "source" property.
SetActivityStreamsSource(i ActivityStreamsSourceProperty)
// SetActivityStreamsStartTime sets the "startTime" property.
SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty)
// SetActivityStreamsSummary sets the "summary" property.
SetActivityStreamsSummary(i ActivityStreamsSummaryProperty)
// SetActivityStreamsTag sets the "tag" property.
SetActivityStreamsTag(i ActivityStreamsTagProperty)
// SetActivityStreamsTarget sets the "target" property.
SetActivityStreamsTarget(i ActivityStreamsTargetProperty)
// SetActivityStreamsTo sets the "to" property.
SetActivityStreamsTo(i ActivityStreamsToProperty)
// SetActivityStreamsUpdated sets the "updated" property.
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
// SetActivityStreamsUrl sets the "url" property.
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
// SetJSONLDId sets the "id" property.
SetJSONLDId(i JSONLDIdProperty)
// SetJSONLDType sets the "type" property.
SetJSONLDType(i JSONLDTypeProperty)
// VocabularyURI returns the vocabulary's URI as a string.
VocabularyURI() string
}

Some files were not shown because too many files have changed in this diff Show more