Documentation ¶
Overview ¶
Package propertysummary contains the implementation for the summary property. All applications are strongly encouraged to use the interface instead of this concrete definition. The interfaces allow applications to consume only the types and properties needed and be independent of the go-fed implementation if another alternative implementation is created. This package is code-generated and subject to the same license as the go-fed tool used to generate it.
This package is independent of other types' and properties' implementations by having a Manager injected into it to act as a factory for the concrete implementations. The implementations have been generated into their own separate subpackages for each vocabulary.
Strongly consider using the interfaces instead of this package.
Index ¶
- func DeserializeSummaryProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- func SetManager(m privateManager)
- type ActivityStreamsSummaryProperty
- func (this *ActivityStreamsSummaryProperty) AppendIRI(v *url.URL)
- func (this *ActivityStreamsSummaryProperty) AppendRDFLangString(v map[string]string)
- func (this *ActivityStreamsSummaryProperty) AppendXMLSchemaString(v string)
- func (this ActivityStreamsSummaryProperty) At(index int) vocab.ActivityStreamsSummaryPropertyIterator
- func (this ActivityStreamsSummaryProperty) Begin() vocab.ActivityStreamsSummaryPropertyIterator
- func (this ActivityStreamsSummaryProperty) Empty() bool
- func (this ActivityStreamsSummaryProperty) End() vocab.ActivityStreamsSummaryPropertyIterator
- func (this *ActivityStreamsSummaryProperty) InsertIRI(idx int, v *url.URL)
- func (this *ActivityStreamsSummaryProperty) InsertRDFLangString(idx int, v map[string]string)
- func (this *ActivityStreamsSummaryProperty) InsertXMLSchemaString(idx int, v string)
- func (this ActivityStreamsSummaryProperty) JSONLDContext() map[string]string
- func (this ActivityStreamsSummaryProperty) KindIndex(idx int) int
- func (this ActivityStreamsSummaryProperty) Len() (length int)
- func (this ActivityStreamsSummaryProperty) Less(i, j int) bool
- func (this ActivityStreamsSummaryProperty) LessThan(o vocab.ActivityStreamsSummaryProperty) bool
- func (this ActivityStreamsSummaryProperty) Name() string
- func (this *ActivityStreamsSummaryProperty) PrependIRI(v *url.URL)
- func (this *ActivityStreamsSummaryProperty) PrependRDFLangString(v map[string]string)
- func (this *ActivityStreamsSummaryProperty) PrependXMLSchemaString(v string)
- func (this *ActivityStreamsSummaryProperty) Remove(idx int)
- func (this ActivityStreamsSummaryProperty) Serialize() (interface{}, error)
- func (this *ActivityStreamsSummaryProperty) SetIRI(idx int, v *url.URL)
- func (this *ActivityStreamsSummaryProperty) SetRDFLangString(idx int, v map[string]string)
- func (this *ActivityStreamsSummaryProperty) SetXMLSchemaString(idx int, v string)
- func (this ActivityStreamsSummaryProperty) Swap(i, j int)
- type ActivityStreamsSummaryPropertyIterator
- func (this ActivityStreamsSummaryPropertyIterator) GetIRI() *url.URL
- func (this ActivityStreamsSummaryPropertyIterator) GetLanguage(bcp47 string) string
- func (this ActivityStreamsSummaryPropertyIterator) GetRDFLangString() map[string]string
- func (this ActivityStreamsSummaryPropertyIterator) GetXMLSchemaString() string
- func (this ActivityStreamsSummaryPropertyIterator) HasAny() bool
- func (this ActivityStreamsSummaryPropertyIterator) HasLanguage(bcp47 string) bool
- func (this ActivityStreamsSummaryPropertyIterator) IsIRI() bool
- func (this ActivityStreamsSummaryPropertyIterator) IsRDFLangString() bool
- func (this ActivityStreamsSummaryPropertyIterator) IsXMLSchemaString() bool
- func (this ActivityStreamsSummaryPropertyIterator) JSONLDContext() map[string]string
- func (this ActivityStreamsSummaryPropertyIterator) KindIndex() int
- func (this ActivityStreamsSummaryPropertyIterator) LessThan(o vocab.ActivityStreamsSummaryPropertyIterator) bool
- func (this ActivityStreamsSummaryPropertyIterator) Name() string
- func (this ActivityStreamsSummaryPropertyIterator) Next() vocab.ActivityStreamsSummaryPropertyIterator
- func (this ActivityStreamsSummaryPropertyIterator) Prev() vocab.ActivityStreamsSummaryPropertyIterator
- func (this *ActivityStreamsSummaryPropertyIterator) SetIRI(v *url.URL)
- func (this *ActivityStreamsSummaryPropertyIterator) SetLanguage(bcp47, value string)
- func (this *ActivityStreamsSummaryPropertyIterator) SetRDFLangString(v map[string]string)
- func (this *ActivityStreamsSummaryPropertyIterator) SetXMLSchemaString(v string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeSummaryProperty ¶
func DeserializeSummaryProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
DeserializeSummaryProperty creates a "summary" property from an interface representation that has been unmarshalled from a text or binary format.
func SetManager ¶
func SetManager(m privateManager)
SetManager sets the manager package-global variable. For internal use only, do not use as part of Application behavior. Must be called at golang init time.
Types ¶
type ActivityStreamsSummaryProperty ¶
type ActivityStreamsSummaryProperty struct {
// contains filtered or unexported fields
}
ActivityStreamsSummaryProperty is the non-functional property "summary". It is permitted to have one or more values, and of different value types.
func NewActivityStreamsSummaryProperty ¶
func NewActivityStreamsSummaryProperty() *ActivityStreamsSummaryProperty
NewActivityStreamsSummaryProperty creates a new summary property.
func (*ActivityStreamsSummaryProperty) AppendIRI ¶
func (this *ActivityStreamsSummaryProperty) AppendIRI(v *url.URL)
AppendIRI appends an IRI value to the back of a list of the property "summary"
func (*ActivityStreamsSummaryProperty) AppendRDFLangString ¶
func (this *ActivityStreamsSummaryProperty) AppendRDFLangString(v map[string]string)
AppendRDFLangString appends a langString value to the back of a list of the property "summary". Invalidates iterators that are traversing using Prev.
func (*ActivityStreamsSummaryProperty) AppendXMLSchemaString ¶
func (this *ActivityStreamsSummaryProperty) AppendXMLSchemaString(v string)
AppendXMLSchemaString appends a string value to the back of a list of the property "summary". Invalidates iterators that are traversing using Prev.
func (ActivityStreamsSummaryProperty) At ¶
func (this ActivityStreamsSummaryProperty) At(index int) vocab.ActivityStreamsSummaryPropertyIterator
At returns the property value for the specified index. Panics if the index is out of bounds.
func (ActivityStreamsSummaryProperty) Begin ¶
func (this ActivityStreamsSummaryProperty) Begin() vocab.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.
func (ActivityStreamsSummaryProperty) Empty ¶
func (this ActivityStreamsSummaryProperty) Empty() bool
Empty returns returns true if there are no elements.
func (ActivityStreamsSummaryProperty) End ¶
func (this ActivityStreamsSummaryProperty) End() vocab.ActivityStreamsSummaryPropertyIterator
End returns beyond-the-last iterator, which is nil. Can be used with the iterator's Next method and this property's Begin method to iterate from front to back through all values.
func (*ActivityStreamsSummaryProperty) InsertIRI ¶
func (this *ActivityStreamsSummaryProperty) InsertIRI(idx int, v *url.URL)
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.
func (*ActivityStreamsSummaryProperty) InsertRDFLangString ¶
func (this *ActivityStreamsSummaryProperty) InsertRDFLangString(idx int, v map[string]string)
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.
func (*ActivityStreamsSummaryProperty) InsertXMLSchemaString ¶
func (this *ActivityStreamsSummaryProperty) InsertXMLSchemaString(idx int, v 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.
func (ActivityStreamsSummaryProperty) JSONLDContext ¶
func (this ActivityStreamsSummaryProperty) JSONLDContext() map[string]string
JSONLDContext returns the JSONLD URIs required in the context string for this property and the specific values that are set. The value in the map is the alias used to import the property's value or values.
func (ActivityStreamsSummaryProperty) KindIndex ¶
func (this ActivityStreamsSummaryProperty) KindIndex(idx int) int
KindIndex computes an arbitrary value for indexing this kind of value. This is a leaky API method specifically needed only for alternate implementations for go-fed. Applications should not use this method. Panics if the index is out of bounds.
func (ActivityStreamsSummaryProperty) Len ¶
func (this ActivityStreamsSummaryProperty) Len() (length int)
Len returns the number of values that exist for the "summary" property.
func (ActivityStreamsSummaryProperty) Less ¶
func (this ActivityStreamsSummaryProperty) Less(i, j int) bool
Less computes whether another property is less than this one. Mixing types results in a consistent but arbitrary ordering
func (ActivityStreamsSummaryProperty) LessThan ¶
func (this ActivityStreamsSummaryProperty) LessThan(o vocab.ActivityStreamsSummaryProperty) 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.
func (ActivityStreamsSummaryProperty) Name ¶
func (this ActivityStreamsSummaryProperty) Name() string
Name returns the name of this property ("summary") with any alias.
func (*ActivityStreamsSummaryProperty) PrependIRI ¶
func (this *ActivityStreamsSummaryProperty) PrependIRI(v *url.URL)
PrependIRI prepends an IRI value to the front of a list of the property "summary".
func (*ActivityStreamsSummaryProperty) PrependRDFLangString ¶
func (this *ActivityStreamsSummaryProperty) PrependRDFLangString(v map[string]string)
PrependRDFLangString prepends a langString value to the front of a list of the property "summary". Invalidates all iterators.
func (*ActivityStreamsSummaryProperty) PrependXMLSchemaString ¶
func (this *ActivityStreamsSummaryProperty) PrependXMLSchemaString(v string)
PrependXMLSchemaString prepends a string value to the front of a list of the property "summary". Invalidates all iterators.
func (*ActivityStreamsSummaryProperty) Remove ¶
func (this *ActivityStreamsSummaryProperty) Remove(idx int)
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.
func (ActivityStreamsSummaryProperty) Serialize ¶
func (this ActivityStreamsSummaryProperty) Serialize() (interface{}, error)
Serialize converts this into an interface representation suitable for marshalling into a text or binary format. Applications should not need this function as most typical use cases serialize types instead of individual properties. It is exposed for alternatives to go-fed implementations to use.
func (*ActivityStreamsSummaryProperty) SetIRI ¶
func (this *ActivityStreamsSummaryProperty) SetIRI(idx int, v *url.URL)
SetIRI sets an IRI value to be at the specified index for the property "summary". Panics if the index is out of bounds.
func (*ActivityStreamsSummaryProperty) SetRDFLangString ¶
func (this *ActivityStreamsSummaryProperty) SetRDFLangString(idx int, v map[string]string)
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.
func (*ActivityStreamsSummaryProperty) SetXMLSchemaString ¶
func (this *ActivityStreamsSummaryProperty) SetXMLSchemaString(idx int, v 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.
func (ActivityStreamsSummaryProperty) Swap ¶
func (this ActivityStreamsSummaryProperty) Swap(i, j int)
Swap swaps the location of values at two indices for the "summary" property.
type ActivityStreamsSummaryPropertyIterator ¶
type ActivityStreamsSummaryPropertyIterator struct {
// contains filtered or unexported fields
}
ActivityStreamsSummaryPropertyIterator is an iterator for a property. It is permitted to be one of multiple value types. At most, one type of value can be present, or none at all. Setting a value will clear the other types of values so that only one of the 'Is' methods will return true. It is possible to clear all values, so that this property is empty.
func NewActivityStreamsSummaryPropertyIterator ¶
func NewActivityStreamsSummaryPropertyIterator() *ActivityStreamsSummaryPropertyIterator
NewActivityStreamsSummaryPropertyIterator creates a new ActivityStreamsSummary property.
func (ActivityStreamsSummaryPropertyIterator) GetIRI ¶
func (this ActivityStreamsSummaryPropertyIterator) GetIRI() *url.URL
GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will return an arbitrary value.
func (ActivityStreamsSummaryPropertyIterator) GetLanguage ¶
func (this ActivityStreamsSummaryPropertyIterator) GetLanguage(bcp47 string) string
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.
func (ActivityStreamsSummaryPropertyIterator) GetRDFLangString ¶
func (this ActivityStreamsSummaryPropertyIterator) GetRDFLangString() map[string]string
GetRDFLangString returns the value of this property. When IsRDFLangString returns false, GetRDFLangString will return an arbitrary value.
func (ActivityStreamsSummaryPropertyIterator) GetXMLSchemaString ¶
func (this ActivityStreamsSummaryPropertyIterator) GetXMLSchemaString() string
GetXMLSchemaString returns the value of this property. When IsXMLSchemaString returns false, GetXMLSchemaString will return an arbitrary value.
func (ActivityStreamsSummaryPropertyIterator) HasAny ¶
func (this ActivityStreamsSummaryPropertyIterator) HasAny() bool
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.
func (ActivityStreamsSummaryPropertyIterator) HasLanguage ¶
func (this ActivityStreamsSummaryPropertyIterator) HasLanguage(bcp47 string) bool
HasLanguage returns true if the natural language map has an entry for the specified BCP47 language code.
func (ActivityStreamsSummaryPropertyIterator) IsIRI ¶
func (this ActivityStreamsSummaryPropertyIterator) IsIRI() bool
IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI to access and set this property
func (ActivityStreamsSummaryPropertyIterator) IsRDFLangString ¶
func (this ActivityStreamsSummaryPropertyIterator) IsRDFLangString() 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.
func (ActivityStreamsSummaryPropertyIterator) IsXMLSchemaString ¶
func (this ActivityStreamsSummaryPropertyIterator) IsXMLSchemaString() 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.
func (ActivityStreamsSummaryPropertyIterator) JSONLDContext ¶
func (this ActivityStreamsSummaryPropertyIterator) JSONLDContext() map[string]string
JSONLDContext returns the JSONLD URIs required in the context string for this property and the specific values that are set. The value in the map is the alias used to import the property's value or values.
func (ActivityStreamsSummaryPropertyIterator) KindIndex ¶
func (this ActivityStreamsSummaryPropertyIterator) KindIndex() int
KindIndex computes an arbitrary value for indexing this kind of value. This is a leaky API detail only for folks looking to replace the go-fed implementation. Applications should not use this method.
func (ActivityStreamsSummaryPropertyIterator) LessThan ¶
func (this ActivityStreamsSummaryPropertyIterator) LessThan(o vocab.ActivityStreamsSummaryPropertyIterator) 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.
func (ActivityStreamsSummaryPropertyIterator) Name ¶
func (this ActivityStreamsSummaryPropertyIterator) Name() string
Name returns the name of this property: "ActivityStreamsSummary".
func (ActivityStreamsSummaryPropertyIterator) Next ¶
func (this ActivityStreamsSummaryPropertyIterator) Next() vocab.ActivityStreamsSummaryPropertyIterator
Next returns the next iterator, or nil if there is no next iterator.
func (ActivityStreamsSummaryPropertyIterator) Prev ¶
func (this ActivityStreamsSummaryPropertyIterator) Prev() vocab.ActivityStreamsSummaryPropertyIterator
Prev returns the previous iterator, or nil if there is no previous iterator.
func (*ActivityStreamsSummaryPropertyIterator) SetIRI ¶
func (this *ActivityStreamsSummaryPropertyIterator) SetIRI(v *url.URL)
SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
func (*ActivityStreamsSummaryPropertyIterator) SetLanguage ¶
func (this *ActivityStreamsSummaryPropertyIterator) SetLanguage(bcp47, value string)
SetLanguage sets the value for the specified BCP47 language code.
func (*ActivityStreamsSummaryPropertyIterator) SetRDFLangString ¶
func (this *ActivityStreamsSummaryPropertyIterator) SetRDFLangString(v map[string]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.
func (*ActivityStreamsSummaryPropertyIterator) SetXMLSchemaString ¶
func (this *ActivityStreamsSummaryPropertyIterator) SetXMLSchemaString(v 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.