Grand test fixup (#138)

* start fixing up tests

* fix up tests + automate with drone

* fiddle with linting

* messing about with drone.yml

* some more fiddling

* hmmm

* add cache

* add vendor directory

* verbose

* ci updates

* update some little things

* update sig
This commit is contained in:
Tobi Smethurst 2021-08-12 21:03:24 +02:00 committed by GitHub
commit 98263a7de6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2677 changed files with 1090869 additions and 219 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,62 @@
// 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)
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,64 @@
// 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

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

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,208 @@
// 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)
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,133 @@
// 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
// 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
// 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)
// 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"
"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,743 @@
// 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
// GetForgeFedBranch returns the value of this property. When
// IsForgeFedBranch returns false, GetForgeFedBranch will return an
// arbitrary value.
GetForgeFedBranch() ForgeFedBranch
// GetForgeFedCommit returns the value of this property. When
// IsForgeFedCommit returns false, GetForgeFedCommit will return an
// arbitrary value.
GetForgeFedCommit() ForgeFedCommit
// GetForgeFedPush returns the value of this property. When IsForgeFedPush
// returns false, GetForgeFedPush will return an arbitrary value.
GetForgeFedPush() ForgeFedPush
// GetForgeFedRepository returns the value of this property. When
// IsForgeFedRepository returns false, GetForgeFedRepository will
// return an arbitrary value.
GetForgeFedRepository() ForgeFedRepository
// GetForgeFedTicket returns the value of this property. When
// IsForgeFedTicket returns false, GetForgeFedTicket will return an
// arbitrary value.
GetForgeFedTicket() ForgeFedTicket
// GetForgeFedTicketDependency returns the value of this property. When
// IsForgeFedTicketDependency returns false,
// GetForgeFedTicketDependency will return an arbitrary value.
GetForgeFedTicketDependency() ForgeFedTicketDependency
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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
// IsForgeFedBranch returns true if this property has a type of "Branch".
// When true, use the GetForgeFedBranch and SetForgeFedBranch methods
// to access and set this property.
IsForgeFedBranch() bool
// IsForgeFedCommit returns true if this property has a type of "Commit".
// When true, use the GetForgeFedCommit and SetForgeFedCommit methods
// to access and set this property.
IsForgeFedCommit() bool
// IsForgeFedPush returns true if this property has a type of "Push". When
// true, use the GetForgeFedPush and SetForgeFedPush methods to access
// and set this property.
IsForgeFedPush() bool
// IsForgeFedRepository returns true if this property has a type of
// "Repository". When true, use the GetForgeFedRepository and
// SetForgeFedRepository methods to access and set this property.
IsForgeFedRepository() bool
// IsForgeFedTicket returns true if this property has a type of "Ticket".
// When true, use the GetForgeFedTicket and SetForgeFedTicket methods
// to access and set this property.
IsForgeFedTicket() bool
// IsForgeFedTicketDependency returns true if this property has a type of
// "TicketDependency". When true, use the GetForgeFedTicketDependency
// and SetForgeFedTicketDependency methods to access and set this
// property.
IsForgeFedTicketDependency() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() 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)
// SetForgeFedBranch sets the value of this property. Calling
// IsForgeFedBranch afterwards returns true.
SetForgeFedBranch(v ForgeFedBranch)
// SetForgeFedCommit sets the value of this property. Calling
// IsForgeFedCommit afterwards returns true.
SetForgeFedCommit(v ForgeFedCommit)
// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
// afterwards returns true.
SetForgeFedPush(v ForgeFedPush)
// SetForgeFedRepository sets the value of this property. Calling
// IsForgeFedRepository afterwards returns true.
SetForgeFedRepository(v ForgeFedRepository)
// SetForgeFedTicket sets the value of this property. Calling
// IsForgeFedTicket afterwards returns true.
SetForgeFedTicket(v ForgeFedTicket)
// SetForgeFedTicketDependency sets the value of this property. Calling
// IsForgeFedTicketDependency afterwards returns true.
SetForgeFedTicketDependency(v ForgeFedTicketDependency)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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,67 @@
// 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,65 @@
// 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,123 @@
// 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
// 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
// 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)
// 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,128 @@
// 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,129 @@
// 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
}

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,63 @@
// 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,60 @@
// 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,62 @@
// 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,249 @@
// 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
// 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
// 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)
// 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)
// 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)
// 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)
// 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)
// 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,242 @@
// 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
// 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
// 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)
// 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)
// 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)
// 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)
// 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)
// 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)
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,104 @@
// 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
}

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,122 @@
// 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
// 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
// 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)
// 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,62 @@
// 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,128 @@
// 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
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,62 @@
// 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,64 @@
// 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,197 @@
// 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,130 @@
// 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
// 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
// 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)
// 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
}

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

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,104 @@
// 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,145 @@
// 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
// 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
// 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)
// 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,130 @@
// 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
// 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
// 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)
// 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
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,63 @@
// 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,64 @@
// 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,145 @@
// 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)
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,124 @@
// 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
}

File diff suppressed because it is too large Load diff

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,773 @@
// 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
// GetForgeFedBranch returns the value of this property. When
// IsForgeFedBranch returns false, GetForgeFedBranch will return an
// arbitrary value.
GetForgeFedBranch() ForgeFedBranch
// GetForgeFedCommit returns the value of this property. When
// IsForgeFedCommit returns false, GetForgeFedCommit will return an
// arbitrary value.
GetForgeFedCommit() ForgeFedCommit
// GetForgeFedPush returns the value of this property. When IsForgeFedPush
// returns false, GetForgeFedPush will return an arbitrary value.
GetForgeFedPush() ForgeFedPush
// GetForgeFedRepository returns the value of this property. When
// IsForgeFedRepository returns false, GetForgeFedRepository will
// return an arbitrary value.
GetForgeFedRepository() ForgeFedRepository
// GetForgeFedTicket returns the value of this property. When
// IsForgeFedTicket returns false, GetForgeFedTicket will return an
// arbitrary value.
GetForgeFedTicket() ForgeFedTicket
// GetForgeFedTicketDependency returns the value of this property. When
// IsForgeFedTicketDependency returns false,
// GetForgeFedTicketDependency will return an arbitrary value.
GetForgeFedTicketDependency() ForgeFedTicketDependency
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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
// 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
// IsForgeFedBranch returns true if this property has a type of "Branch".
// When true, use the GetForgeFedBranch and SetForgeFedBranch methods
// to access and set this property.
IsForgeFedBranch() bool
// IsForgeFedCommit returns true if this property has a type of "Commit".
// When true, use the GetForgeFedCommit and SetForgeFedCommit methods
// to access and set this property.
IsForgeFedCommit() bool
// IsForgeFedPush returns true if this property has a type of "Push". When
// true, use the GetForgeFedPush and SetForgeFedPush methods to access
// and set this property.
IsForgeFedPush() bool
// IsForgeFedRepository returns true if this property has a type of
// "Repository". When true, use the GetForgeFedRepository and
// SetForgeFedRepository methods to access and set this property.
IsForgeFedRepository() bool
// IsForgeFedTicket returns true if this property has a type of "Ticket".
// When true, use the GetForgeFedTicket and SetForgeFedTicket methods
// to access and set this property.
IsForgeFedTicket() bool
// IsForgeFedTicketDependency returns true if this property has a type of
// "TicketDependency". When true, use the GetForgeFedTicketDependency
// and SetForgeFedTicketDependency methods to access and set this
// property.
IsForgeFedTicketDependency() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() 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 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)
// SetForgeFedBranch sets the value of this property. Calling
// IsForgeFedBranch afterwards returns true.
SetForgeFedBranch(v ForgeFedBranch)
// SetForgeFedCommit sets the value of this property. Calling
// IsForgeFedCommit afterwards returns true.
SetForgeFedCommit(v ForgeFedCommit)
// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
// afterwards returns true.
SetForgeFedPush(v ForgeFedPush)
// SetForgeFedRepository sets the value of this property. Calling
// IsForgeFedRepository afterwards returns true.
SetForgeFedRepository(v ForgeFedRepository)
// SetForgeFedTicket sets the value of this property. Calling
// IsForgeFedTicket afterwards returns true.
SetForgeFedTicket(v ForgeFedTicket)
// SetForgeFedTicketDependency sets the value of this property. Calling
// IsForgeFedTicketDependency afterwards returns true.
SetForgeFedTicketDependency(v ForgeFedTicketDependency)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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,72 @@
// 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,65 @@
// 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,770 @@
// 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
// GetForgeFedBranch returns the value of this property. When
// IsForgeFedBranch returns false, GetForgeFedBranch will return an
// arbitrary value.
GetForgeFedBranch() ForgeFedBranch
// GetForgeFedCommit returns the value of this property. When
// IsForgeFedCommit returns false, GetForgeFedCommit will return an
// arbitrary value.
GetForgeFedCommit() ForgeFedCommit
// GetForgeFedPush returns the value of this property. When IsForgeFedPush
// returns false, GetForgeFedPush will return an arbitrary value.
GetForgeFedPush() ForgeFedPush
// GetForgeFedRepository returns the value of this property. When
// IsForgeFedRepository returns false, GetForgeFedRepository will
// return an arbitrary value.
GetForgeFedRepository() ForgeFedRepository
// GetForgeFedTicket returns the value of this property. When
// IsForgeFedTicket returns false, GetForgeFedTicket will return an
// arbitrary value.
GetForgeFedTicket() ForgeFedTicket
// GetForgeFedTicketDependency returns the value of this property. When
// IsForgeFedTicketDependency returns false,
// GetForgeFedTicketDependency will return an arbitrary value.
GetForgeFedTicketDependency() ForgeFedTicketDependency
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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
// 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
// IsForgeFedBranch returns true if this property has a type of "Branch".
// When true, use the GetForgeFedBranch and SetForgeFedBranch methods
// to access and set this property.
IsForgeFedBranch() bool
// IsForgeFedCommit returns true if this property has a type of "Commit".
// When true, use the GetForgeFedCommit and SetForgeFedCommit methods
// to access and set this property.
IsForgeFedCommit() bool
// IsForgeFedPush returns true if this property has a type of "Push". When
// true, use the GetForgeFedPush and SetForgeFedPush methods to access
// and set this property.
IsForgeFedPush() bool
// IsForgeFedRepository returns true if this property has a type of
// "Repository". When true, use the GetForgeFedRepository and
// SetForgeFedRepository methods to access and set this property.
IsForgeFedRepository() bool
// IsForgeFedTicket returns true if this property has a type of "Ticket".
// When true, use the GetForgeFedTicket and SetForgeFedTicket methods
// to access and set this property.
IsForgeFedTicket() bool
// IsForgeFedTicketDependency returns true if this property has a type of
// "TicketDependency". When true, use the GetForgeFedTicketDependency
// and SetForgeFedTicketDependency methods to access and set this
// property.
IsForgeFedTicketDependency() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() 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 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)
// SetForgeFedBranch sets the value of this property. Calling
// IsForgeFedBranch afterwards returns true.
SetForgeFedBranch(v ForgeFedBranch)
// SetForgeFedCommit sets the value of this property. Calling
// IsForgeFedCommit afterwards returns true.
SetForgeFedCommit(v ForgeFedCommit)
// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
// afterwards returns true.
SetForgeFedPush(v ForgeFedPush)
// SetForgeFedRepository sets the value of this property. Calling
// IsForgeFedRepository afterwards returns true.
SetForgeFedRepository(v ForgeFedRepository)
// SetForgeFedTicket sets the value of this property. Calling
// IsForgeFedTicket afterwards returns true.
SetForgeFedTicket(v ForgeFedTicket)
// SetForgeFedTicketDependency sets the value of this property. Calling
// IsForgeFedTicketDependency afterwards returns true.
SetForgeFedTicketDependency(v ForgeFedTicketDependency)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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,198 @@
// 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

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,73 @@
// 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,79 @@
// 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,63 @@
// 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,244 @@
// 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
// 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
// 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)
// 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)
// 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)
// 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)
// 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)
// 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,63 @@
// 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,60 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Identifies the Person assigned to work on this Ticket.
type ForgeFedAssignedToProperty interface {
// Clear ensures no value of this property is set. Calling
// IsActivityStreamsPerson afterwards will return false.
Clear()
// Get returns the value of this property. When IsActivityStreamsPerson
// returns false, Get will return any arbitrary value.
Get() ActivityStreamsPerson
// 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
// IsActivityStreamsPerson returns true if this property is set and not an
// IRI.
IsActivityStreamsPerson() 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 ForgeFedAssignedToProperty) bool
// Name returns the name of this property: "assignedTo".
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 IsActivityStreamsPerson
// afterwards will return true.
Set(v ActivityStreamsPerson)
// 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
}

View file

@ -0,0 +1,738 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Identifies the actor (usually a person, but could be something else, e.g. a
// bot) that added a set of changes to the version-control Repository.
// Sometimes the author of the changes and the committer of those changes
// arent the same actor, in which case the committedBy property can be used
// to specify who added the changes to the repository. For example, when
// applying a patch to a repository, e.g. a Git repository, the author would
// be the person who made the patch, and the committer would be the person who
// applied the patch to their copy of the repository.
type ForgeFedCommittedByProperty 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
// GetForgeFedBranch returns the value of this property. When
// IsForgeFedBranch returns false, GetForgeFedBranch will return an
// arbitrary value.
GetForgeFedBranch() ForgeFedBranch
// GetForgeFedCommit returns the value of this property. When
// IsForgeFedCommit returns false, GetForgeFedCommit will return an
// arbitrary value.
GetForgeFedCommit() ForgeFedCommit
// GetForgeFedPush returns the value of this property. When IsForgeFedPush
// returns false, GetForgeFedPush will return an arbitrary value.
GetForgeFedPush() ForgeFedPush
// GetForgeFedRepository returns the value of this property. When
// IsForgeFedRepository returns false, GetForgeFedRepository will
// return an arbitrary value.
GetForgeFedRepository() ForgeFedRepository
// GetForgeFedTicket returns the value of this property. When
// IsForgeFedTicket returns false, GetForgeFedTicket will return an
// arbitrary value.
GetForgeFedTicket() ForgeFedTicket
// GetForgeFedTicketDependency returns the value of this property. When
// IsForgeFedTicketDependency returns false,
// GetForgeFedTicketDependency will return an arbitrary value.
GetForgeFedTicketDependency() ForgeFedTicketDependency
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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
// IsForgeFedBranch returns true if this property has a type of "Branch".
// When true, use the GetForgeFedBranch and SetForgeFedBranch methods
// to access and set this property.
IsForgeFedBranch() bool
// IsForgeFedCommit returns true if this property has a type of "Commit".
// When true, use the GetForgeFedCommit and SetForgeFedCommit methods
// to access and set this property.
IsForgeFedCommit() bool
// IsForgeFedPush returns true if this property has a type of "Push". When
// true, use the GetForgeFedPush and SetForgeFedPush methods to access
// and set this property.
IsForgeFedPush() bool
// IsForgeFedRepository returns true if this property has a type of
// "Repository". When true, use the GetForgeFedRepository and
// SetForgeFedRepository methods to access and set this property.
IsForgeFedRepository() bool
// IsForgeFedTicket returns true if this property has a type of "Ticket".
// When true, use the GetForgeFedTicket and SetForgeFedTicket methods
// to access and set this property.
IsForgeFedTicket() bool
// IsForgeFedTicketDependency returns true if this property has a type of
// "TicketDependency". When true, use the GetForgeFedTicketDependency
// and SetForgeFedTicketDependency methods to access and set this
// property.
IsForgeFedTicketDependency() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() 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 ForgeFedCommittedByProperty) bool
// Name returns the name of this property: "committedBy".
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)
// SetForgeFedBranch sets the value of this property. Calling
// IsForgeFedBranch afterwards returns true.
SetForgeFedBranch(v ForgeFedBranch)
// SetForgeFedCommit sets the value of this property. Calling
// IsForgeFedCommit afterwards returns true.
SetForgeFedCommit(v ForgeFedCommit)
// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
// afterwards returns true.
SetForgeFedPush(v ForgeFedPush)
// SetForgeFedRepository sets the value of this property. Calling
// IsForgeFedRepository afterwards returns true.
SetForgeFedRepository(v ForgeFedRepository)
// SetForgeFedTicket sets the value of this property. Calling
// IsForgeFedTicket afterwards returns true.
SetForgeFedTicket(v ForgeFedTicket)
// SetForgeFedTicketDependency sets the value of this property. Calling
// IsForgeFedTicketDependency afterwards returns true.
SetForgeFedTicketDependency(v ForgeFedTicketDependency)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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,60 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import (
"net/url"
"time"
)
// Specifies the time that a set of changes was committed into the Repository and
// became a Commit in it. This can be different from the time the set of
// changes was produced, e.g. if one person creates a patch and sends to
// another, and the other person then applies the patch to their copy of the
// repository. We call the former event "created" and the latter event
// "committed", and this latter event is specified by the committed property.
type ForgeFedCommittedProperty 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 ForgeFedCommittedProperty) bool
// Name returns the name of this property: "committed".
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,82 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Identifies a Collection of TicketDependency which specify tickets that depends
// on this Ticket, i.e. this ticket is the object of the dependsOn
// relationship. Often called "reverse dependencies".
type ForgeFedDependantsProperty 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 ForgeFedDependantsProperty) bool
// Name returns the name of this property: "dependants".
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"
// ForgeFedDependedByPropertyIterator represents a single value for the
// "dependedBy" property.
type ForgeFedDependedByPropertyIterator interface {
// Get returns the value of this property. When IsForgeFedTicket returns
// false, Get will return any arbitrary value.
Get() ForgeFedTicket
// 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
// IsForgeFedTicket returns true if this property is set and not an IRI.
IsForgeFedTicket() 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 ForgeFedDependedByPropertyIterator) bool
// Name returns the name of this property: "ForgeFedDependedBy".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ForgeFedDependedByPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ForgeFedDependedByPropertyIterator
// Set sets the value of this property. Calling IsForgeFedTicket
// afterwards will return true.
Set(v ForgeFedTicket)
// 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
}
// Identifies one or more tickets which depend on this Ticket, i.e. they cant
// be resolved without this tickets being resolved too.
type ForgeFedDependedByProperty interface {
// AppendForgeFedTicket appends a Ticket value to the back of a list of
// the property "dependedBy". Invalidates iterators that are
// traversing using Prev.
AppendForgeFedTicket(v ForgeFedTicket)
// AppendIRI appends an IRI value to the back of a list of the property
// "dependedBy"
AppendIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "dependedBy". 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) ForgeFedDependedByPropertyIterator
// 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() ForgeFedDependedByPropertyIterator
// 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() ForgeFedDependedByPropertyIterator
// InsertForgeFedTicket inserts a Ticket value at the specified index for
// a property "dependedBy". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertForgeFedTicket(idx int, v ForgeFedTicket)
// Insert inserts an IRI value at the specified index for a property
// "dependedBy". 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 "dependedBy". 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 "dependedBy"
// 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 ForgeFedDependedByProperty) bool
// Name returns the name of this property ("dependedBy") with any alias.
Name() string
// PrependForgeFedTicket prepends a Ticket value to the front of a list of
// the property "dependedBy". Invalidates all iterators.
PrependForgeFedTicket(v ForgeFedTicket)
// PrependIRI prepends an IRI value to the front of a list of the property
// "dependedBy".
PrependIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "dependedBy". 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 "dependedBy", 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 Ticket value to be at the specified index for the property
// "dependedBy". Panics if the index is out of bounds. Invalidates all
// iterators.
Set(idx int, v ForgeFedTicket)
// SetIRI sets an IRI value to be at the specified index for the property
// "dependedBy". 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 "dependedBy". 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 "dependedBy"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,82 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Identifies a Collection of TicketDependency which specify tickets that this
// Ticket depends on, i.e. this ticket is the subject of the dependsOn
// relationship.
type ForgeFedDependenciesProperty 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 ForgeFedDependenciesProperty) bool
// Name returns the name of this property: "dependencies".
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"
// ForgeFedDependsOnPropertyIterator represents a single value for the "dependsOn"
// property.
type ForgeFedDependsOnPropertyIterator interface {
// Get returns the value of this property. When IsForgeFedTicket returns
// false, Get will return any arbitrary value.
Get() ForgeFedTicket
// 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
// IsForgeFedTicket returns true if this property is set and not an IRI.
IsForgeFedTicket() 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 ForgeFedDependsOnPropertyIterator) bool
// Name returns the name of this property: "ForgeFedDependsOn".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ForgeFedDependsOnPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ForgeFedDependsOnPropertyIterator
// Set sets the value of this property. Calling IsForgeFedTicket
// afterwards will return true.
Set(v ForgeFedTicket)
// 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
}
// Identifies one or more tickets on which this Ticket depends, i.e. it cant be
// resolved without those tickets being resolved too.
type ForgeFedDependsOnProperty interface {
// AppendForgeFedTicket appends a Ticket value to the back of a list of
// the property "dependsOn". Invalidates iterators that are traversing
// using Prev.
AppendForgeFedTicket(v ForgeFedTicket)
// AppendIRI appends an IRI value to the back of a list of the property
// "dependsOn"
AppendIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "dependsOn". 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) ForgeFedDependsOnPropertyIterator
// 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() ForgeFedDependsOnPropertyIterator
// 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() ForgeFedDependsOnPropertyIterator
// InsertForgeFedTicket inserts a Ticket value at the specified index for
// a property "dependsOn". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertForgeFedTicket(idx int, v ForgeFedTicket)
// Insert inserts an IRI value at the specified index for a property
// "dependsOn". 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 "dependsOn". 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 "dependsOn"
// 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 ForgeFedDependsOnProperty) bool
// Name returns the name of this property ("dependsOn") with any alias.
Name() string
// PrependForgeFedTicket prepends a Ticket value to the front of a list of
// the property "dependsOn". Invalidates all iterators.
PrependForgeFedTicket(v ForgeFedTicket)
// PrependIRI prepends an IRI value to the front of a list of the property
// "dependsOn".
PrependIRI(v *url.URL)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "dependsOn". 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 "dependsOn", 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 Ticket value to be at the specified index for the property
// "dependsOn". Panics if the index is out of bounds. Invalidates all
// iterators.
Set(idx int, v ForgeFedTicket)
// SetIRI sets an IRI value to be at the specified index for the property
// "dependsOn". 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 "dependsOn". 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 "dependsOn"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,752 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Specifies the description text of a Commit, which is an optional possibly
// multi-line text provided in addition to the one-line commit title. The
// range of the description property works the same way the range of the
// ActivityPub source property works.
//
// {
// "@context": [
// "https://www.w3.org/ns/activitystreams",
// "https://forgefed.peers.community/ns"
// ],
// "attributedTo": "https://example.dev/bob",
// "context": "https://example.dev/alice/myrepo",
// "created": "2019-07-11T12:34:56Z",
// "description": {
// "content": "It's about time people can install on their computers!",
// "mediaType": "text/plain"
// },
// "hash": "109ec9a09c7df7fec775d2ba0b9d466e5643ec8c",
// "id": "https://example.dev/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c",
// "summary": "Add an installation script, fixes issue #89",
// "type": "Commit"
// }
type ForgeFedDescriptionProperty 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
// GetForgeFedBranch returns the value of this property. When
// IsForgeFedBranch returns false, GetForgeFedBranch will return an
// arbitrary value.
GetForgeFedBranch() ForgeFedBranch
// GetForgeFedCommit returns the value of this property. When
// IsForgeFedCommit returns false, GetForgeFedCommit will return an
// arbitrary value.
GetForgeFedCommit() ForgeFedCommit
// GetForgeFedPush returns the value of this property. When IsForgeFedPush
// returns false, GetForgeFedPush will return an arbitrary value.
GetForgeFedPush() ForgeFedPush
// GetForgeFedRepository returns the value of this property. When
// IsForgeFedRepository returns false, GetForgeFedRepository will
// return an arbitrary value.
GetForgeFedRepository() ForgeFedRepository
// GetForgeFedTicket returns the value of this property. When
// IsForgeFedTicket returns false, GetForgeFedTicket will return an
// arbitrary value.
GetForgeFedTicket() ForgeFedTicket
// GetForgeFedTicketDependency returns the value of this property. When
// IsForgeFedTicketDependency returns false,
// GetForgeFedTicketDependency will return an arbitrary value.
GetForgeFedTicketDependency() ForgeFedTicketDependency
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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
// IsForgeFedBranch returns true if this property has a type of "Branch".
// When true, use the GetForgeFedBranch and SetForgeFedBranch methods
// to access and set this property.
IsForgeFedBranch() bool
// IsForgeFedCommit returns true if this property has a type of "Commit".
// When true, use the GetForgeFedCommit and SetForgeFedCommit methods
// to access and set this property.
IsForgeFedCommit() bool
// IsForgeFedPush returns true if this property has a type of "Push". When
// true, use the GetForgeFedPush and SetForgeFedPush methods to access
// and set this property.
IsForgeFedPush() bool
// IsForgeFedRepository returns true if this property has a type of
// "Repository". When true, use the GetForgeFedRepository and
// SetForgeFedRepository methods to access and set this property.
IsForgeFedRepository() bool
// IsForgeFedTicket returns true if this property has a type of "Ticket".
// When true, use the GetForgeFedTicket and SetForgeFedTicket methods
// to access and set this property.
IsForgeFedTicket() bool
// IsForgeFedTicketDependency returns true if this property has a type of
// "TicketDependency". When true, use the GetForgeFedTicketDependency
// and SetForgeFedTicketDependency methods to access and set this
// property.
IsForgeFedTicketDependency() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() 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 ForgeFedDescriptionProperty) bool
// Name returns the name of this property: "description".
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)
// SetForgeFedBranch sets the value of this property. Calling
// IsForgeFedBranch afterwards returns true.
SetForgeFedBranch(v ForgeFedBranch)
// SetForgeFedCommit sets the value of this property. Calling
// IsForgeFedCommit afterwards returns true.
SetForgeFedCommit(v ForgeFedCommit)
// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
// afterwards returns true.
SetForgeFedPush(v ForgeFedPush)
// SetForgeFedRepository sets the value of this property. Calling
// IsForgeFedRepository afterwards returns true.
SetForgeFedRepository(v ForgeFedRepository)
// SetForgeFedTicket sets the value of this property. Calling
// IsForgeFedTicket afterwards returns true.
SetForgeFedTicket(v ForgeFedTicket)
// SetForgeFedTicketDependency sets the value of this property. Calling
// IsForgeFedTicketDependency afterwards returns true.
SetForgeFedTicketDependency(v ForgeFedTicketDependency)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,132 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ForgeFedFilesAddedPropertyIterator represents a single value for the
// "filesAdded" property.
type ForgeFedFilesAddedPropertyIterator interface {
// 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 ForgeFedFilesAddedPropertyIterator) bool
// Name returns the name of this property: "ForgeFedFilesAdded".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ForgeFedFilesAddedPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ForgeFedFilesAddedPropertyIterator
// 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)
}
// Specifies a filename, as a relative path, relative to the top of the tree of
// files in the Repository, of a file that got added in this Commit, and
// didnt exist in the previous version of the tree.
type ForgeFedFilesAddedProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "filesAdded"
AppendIRI(v *url.URL)
// AppendXMLSchemaString appends a string value to the back of a list of
// the property "filesAdded". 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) ForgeFedFilesAddedPropertyIterator
// 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() ForgeFedFilesAddedPropertyIterator
// 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() ForgeFedFilesAddedPropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "filesAdded". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertXMLSchemaString inserts a string value at the specified index for
// a property "filesAdded". 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 "filesAdded"
// 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 ForgeFedFilesAddedProperty) bool
// Name returns the name of this property ("filesAdded") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "filesAdded".
PrependIRI(v *url.URL)
// PrependXMLSchemaString prepends a string value to the front of a list
// of the property "filesAdded". Invalidates all iterators.
PrependXMLSchemaString(v string)
// Remove deletes an element at the specified index from a list of the
// property "filesAdded", 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 string value to be at the specified index for the property
// "filesAdded". 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
// "filesAdded". 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 "filesAdded"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,132 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ForgeFedFilesModifiedPropertyIterator represents a single value for the
// "filesModified" property.
type ForgeFedFilesModifiedPropertyIterator interface {
// 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 ForgeFedFilesModifiedPropertyIterator) bool
// Name returns the name of this property: "ForgeFedFilesModified".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ForgeFedFilesModifiedPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ForgeFedFilesModifiedPropertyIterator
// 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)
}
// Specifies a filename, as a relative path, relative to the top of the tree of
// files in the Repository, of a file that existed in the previous version of
// the tree, and its contents got modified in this Commit.
type ForgeFedFilesModifiedProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "filesModified"
AppendIRI(v *url.URL)
// AppendXMLSchemaString appends a string value to the back of a list of
// the property "filesModified". 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) ForgeFedFilesModifiedPropertyIterator
// 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() ForgeFedFilesModifiedPropertyIterator
// 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() ForgeFedFilesModifiedPropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "filesModified". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertXMLSchemaString inserts a string value at the specified index for
// a property "filesModified". 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 "filesModified"
// 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 ForgeFedFilesModifiedProperty) bool
// Name returns the name of this property ("filesModified") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "filesModified".
PrependIRI(v *url.URL)
// PrependXMLSchemaString prepends a string value to the front of a list
// of the property "filesModified". Invalidates all iterators.
PrependXMLSchemaString(v string)
// Remove deletes an element at the specified index from a list of the
// property "filesModified", 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 string value to be at the specified index for the property
// "filesModified". 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
// "filesModified". 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
// "filesModified" property.
Swap(i, j int)
}

View file

@ -0,0 +1,132 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// ForgeFedFilesRemovedPropertyIterator represents a single value for the
// "filesRemoved" property.
type ForgeFedFilesRemovedPropertyIterator interface {
// 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 ForgeFedFilesRemovedPropertyIterator) bool
// Name returns the name of this property: "ForgeFedFilesRemoved".
Name() string
// Next returns the next iterator, or nil if there is no next iterator.
Next() ForgeFedFilesRemovedPropertyIterator
// Prev returns the previous iterator, or nil if there is no previous
// iterator.
Prev() ForgeFedFilesRemovedPropertyIterator
// 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)
}
// Specifies a filename, as a relative path, relative to the top of the tree of
// files in the Repository, of a file that existed in the previous version of
// the tree, and got removed from the tree in this Commit.
type ForgeFedFilesRemovedProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "filesRemoved"
AppendIRI(v *url.URL)
// AppendXMLSchemaString appends a string value to the back of a list of
// the property "filesRemoved". 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) ForgeFedFilesRemovedPropertyIterator
// 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() ForgeFedFilesRemovedPropertyIterator
// 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() ForgeFedFilesRemovedPropertyIterator
// Insert inserts an IRI value at the specified index for a property
// "filesRemoved". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertXMLSchemaString inserts a string value at the specified index for
// a property "filesRemoved". 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 "filesRemoved"
// 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 ForgeFedFilesRemovedProperty) bool
// Name returns the name of this property ("filesRemoved") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "filesRemoved".
PrependIRI(v *url.URL)
// PrependXMLSchemaString prepends a string value to the front of a list
// of the property "filesRemoved". Invalidates all iterators.
PrependXMLSchemaString(v string)
// Remove deletes an element at the specified index from a list of the
// property "filesRemoved", 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 string value to be at the specified index for the property
// "filesRemoved". 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
// "filesRemoved". 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 "filesRemoved"
// property.
Swap(i, j int)
}

View file

@ -0,0 +1,82 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Identifies an OrderedCollection of Repositorys which were created as forks of
// this Repository, i.e. by cloning it. The order of the collection items is
// by reverse chronological order of the forking events.
type ForgeFedForksProperty 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 ForgeFedForksProperty) bool
// Name returns the name of this property: "forks".
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,56 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Specifies the hash associated with a Commit, which is a unique identifier of
// the commit within the Repository, usually generated as a cryptographic hash
// function of some (or all) of the commits data or metadata. For example,
// in Git it would be the SHA1 hash of the commit; in Darcs it would be the
// SHA1 hash of the patch info.
type ForgeFedHashProperty 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 ForgeFedHashProperty) bool
// Name returns the name of this property: "hash".
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,53 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Specifies whether the Ticket is closed, i.e. the work on it is done and it
// doesnt need to attract attention anymore.
type ForgeFedIsResolvedProperty 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 ForgeFedIsResolvedProperty) bool
// Name returns the name of this property: "isResolved".
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,66 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Specifies an identifier for a Branch, that is used in the Repository to
// uniquely refer to it. For example, in Git, "refs/heads/master" would be the
// ref of the master branch.
//
// {
// "@context": [
// "https://www.w3.org/ns/activitystreams",
// "https://forgefed.peers.community/ns"
// ],
// "context": "https://example.dev/luke/myrepo",
// "id": "https://example.dev/luke/myrepo/branches/master",
// "name": "master",
// "ref": "refs/heads/master",
// "type": "Branch"
// }
type ForgeFedRefProperty 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 ForgeFedRefProperty) bool
// Name returns the name of this property: "ref".
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,142 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Specifies a Collection of actors who are working on the object, or responsible
// for it, or managing or administrating it, or having edit access to it. For
// example, for a Repository, it could be the people who have push/edit
// access, the "collaborators" of the repository.
//
// {
// "@context": [
// "https://www.w3.org/ns/activitystreams",
// "https://w3id.org/security/v1",
// "https://forgefed.peers.community/ns"
// ],
// "followers": "https://dev.example/aviva/treesim/followers",
// "id": "https://dev.example/aviva/treesim",
// "inbox": "https://dev.example/aviva/treesim/inbox",
// "name": "Tree Growth 3D Simulation",
// "outbox": "https://dev.example/aviva/treesim/outbox",
// "publicKey": {
// "id": "https://dev.example/aviva/treesim#main-key",
// "owner": "https://dev.example/aviva/treesim",
// "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhki....."
// },
// "summary": "\u003cp\u003eTree growth 3D simulator for my nature
// exploration game\u003c/p\u003e",
// "team": "https://dev.example/aviva/treesim/team",
// "type": "Repository"
// }
//
// {
// "@context": "https://www.w3.org/ns/activitystreams",
// "id": "https://dev.example/aviva/treesim/team",
// "items": [
// "https://dev.example/aviva",
// "https://dev.example/luke",
// "https://code.community/users/lorax"
// ],
// "totalItems": 3,
// "type": "Collection"
// }
type ForgeFedTeamProperty 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 ForgeFedTeamProperty) bool
// Name returns the name of this property: "team".
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,745 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Identifies the actor which tracks tickets related to the given object. This is
// the actor to whom you send tickets youd like to open against the object.
//
// {
// "@context": [
// "https://www.w3.org/ns/activitystreams",
// "https://forgefed.peers.community/ns"
// ],
// "id": "https://dev.example/aviva/treesim",
// "name": "Tree Growth 3D Simulation",
// "summary": "\u003cp\u003eTree growth 3D simulator for my nature
// exploration game\u003c/p\u003e",
// "ticketsTrackedBy": "https://bugs.example/projects/treesim",
// "type": "Repository"
// }
type ForgeFedTicketsTrackedByProperty 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
// GetForgeFedBranch returns the value of this property. When
// IsForgeFedBranch returns false, GetForgeFedBranch will return an
// arbitrary value.
GetForgeFedBranch() ForgeFedBranch
// GetForgeFedCommit returns the value of this property. When
// IsForgeFedCommit returns false, GetForgeFedCommit will return an
// arbitrary value.
GetForgeFedCommit() ForgeFedCommit
// GetForgeFedPush returns the value of this property. When IsForgeFedPush
// returns false, GetForgeFedPush will return an arbitrary value.
GetForgeFedPush() ForgeFedPush
// GetForgeFedRepository returns the value of this property. When
// IsForgeFedRepository returns false, GetForgeFedRepository will
// return an arbitrary value.
GetForgeFedRepository() ForgeFedRepository
// GetForgeFedTicket returns the value of this property. When
// IsForgeFedTicket returns false, GetForgeFedTicket will return an
// arbitrary value.
GetForgeFedTicket() ForgeFedTicket
// GetForgeFedTicketDependency returns the value of this property. When
// IsForgeFedTicketDependency returns false,
// GetForgeFedTicketDependency will return an arbitrary value.
GetForgeFedTicketDependency() ForgeFedTicketDependency
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// 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
// IsForgeFedBranch returns true if this property has a type of "Branch".
// When true, use the GetForgeFedBranch and SetForgeFedBranch methods
// to access and set this property.
IsForgeFedBranch() bool
// IsForgeFedCommit returns true if this property has a type of "Commit".
// When true, use the GetForgeFedCommit and SetForgeFedCommit methods
// to access and set this property.
IsForgeFedCommit() bool
// IsForgeFedPush returns true if this property has a type of "Push". When
// true, use the GetForgeFedPush and SetForgeFedPush methods to access
// and set this property.
IsForgeFedPush() bool
// IsForgeFedRepository returns true if this property has a type of
// "Repository". When true, use the GetForgeFedRepository and
// SetForgeFedRepository methods to access and set this property.
IsForgeFedRepository() bool
// IsForgeFedTicket returns true if this property has a type of "Ticket".
// When true, use the GetForgeFedTicket and SetForgeFedTicket methods
// to access and set this property.
IsForgeFedTicket() bool
// IsForgeFedTicketDependency returns true if this property has a type of
// "TicketDependency". When true, use the GetForgeFedTicketDependency
// and SetForgeFedTicketDependency methods to access and set this
// property.
IsForgeFedTicketDependency() bool
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() 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 ForgeFedTicketsTrackedByProperty) bool
// Name returns the name of this property: "ticketsTrackedBy".
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)
// SetForgeFedBranch sets the value of this property. Calling
// IsForgeFedBranch afterwards returns true.
SetForgeFedBranch(v ForgeFedBranch)
// SetForgeFedCommit sets the value of this property. Calling
// IsForgeFedCommit afterwards returns true.
SetForgeFedCommit(v ForgeFedCommit)
// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
// afterwards returns true.
SetForgeFedPush(v ForgeFedPush)
// SetForgeFedRepository sets the value of this property. Calling
// IsForgeFedRepository afterwards returns true.
SetForgeFedRepository(v ForgeFedRepository)
// SetForgeFedTicket sets the value of this property. Calling
// IsForgeFedTicket afterwards returns true.
SetForgeFedTicket(v ForgeFedTicket)
// SetForgeFedTicketDependency sets the value of this property. Calling
// IsForgeFedTicketDependency afterwards returns true.
SetForgeFedTicketDependency(v ForgeFedTicketDependency)
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// 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
}

File diff suppressed because it is too large Load diff

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,54 @@
// 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,54 @@
// 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,82 @@
// 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,54 @@
// 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,54 @@
// 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,56 @@
// 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)
}

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