Add sensitive property to objects
このコミットが含まれているのは:
コミット
7821289d40
|
@ -4259,13 +4259,19 @@
|
|||
"id": "https://www.w3.org/TR/activitypub/#source-property",
|
||||
"type": "http://schema.org/CreativeWork",
|
||||
"mainEntity": {
|
||||
"@context": ["https://www.w3.org/ns/activitystreams", {"@language": "en"}],
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"@language": "en"
|
||||
}
|
||||
],
|
||||
"type": "Note",
|
||||
"id": "http://postparty.example/p/2415",
|
||||
"content": "<p>I <em>really</em> like strawberries!</p>",
|
||||
"source": {
|
||||
"content": "I *really* like strawberries!",
|
||||
"mediaType": "text/markdown"}
|
||||
"mediaType": "text/markdown"
|
||||
}
|
||||
},
|
||||
"name": "Example 8"
|
||||
},
|
||||
|
@ -4870,6 +4876,29 @@
|
|||
"name": "deleted",
|
||||
"url": "https://www.w3.org/TR/activitystreams-vocabulary/#dfn-deleted"
|
||||
},
|
||||
{
|
||||
"id": "https://www.w3.org/ns/activitystreams#sensitive",
|
||||
"type": [
|
||||
"rdf:Property",
|
||||
"owl:ObjectProperty"
|
||||
],
|
||||
"notes": "Indicates that some users may wish to apply discretion about viewing this object's content, whether due to nudity, violence, or any other likely aspects that viewers may be sensitive to.",
|
||||
"domain": {
|
||||
"type": "owl:Class",
|
||||
"unionOf": {
|
||||
"type": "owl:Class",
|
||||
"url": "https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object",
|
||||
"name": "Object"
|
||||
}
|
||||
},
|
||||
"isDefinedBy": "https://www.w3.org/TR/activitystreams-vocabulary/#sensitive",
|
||||
"range": {
|
||||
"type": "owl:Class",
|
||||
"unionOf": "xsd:boolean"
|
||||
},
|
||||
"name": "sensitive",
|
||||
"url": "https://www.w3.org/TR/activitystreams-vocabulary/#sensitive"
|
||||
},
|
||||
{
|
||||
"id": "https://www.w3.org/TR/activitypub/#inbox",
|
||||
"type": [
|
||||
|
@ -4880,7 +4909,12 @@
|
|||
"id": "https://www.w3.org/TR/activitypub/#example9",
|
||||
"type": "http://schema.org/CreativeWork",
|
||||
"mainEntity": {
|
||||
"@context": ["https://www.w3.org/ns/activitystreams", {"@language": "ja"}],
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"@language": "ja"
|
||||
}
|
||||
],
|
||||
"type": "Person",
|
||||
"id": "https://kenzoishii.example.com/",
|
||||
"following": "https://kenzoishii.example.com/following.json",
|
||||
|
@ -4891,7 +4925,9 @@
|
|||
"preferredUsername": "kenzoishii",
|
||||
"name": "石井健蔵",
|
||||
"summary": "この方はただの例です",
|
||||
"icon": ["https://kenzoishii.example.com/image/165987aklre4"]
|
||||
"icon": [
|
||||
"https://kenzoishii.example.com/image/165987aklre4"
|
||||
]
|
||||
},
|
||||
"name": "Example 9"
|
||||
},
|
||||
|
@ -4948,7 +4984,12 @@
|
|||
"id": "https://www.w3.org/TR/activitypub/#example9",
|
||||
"type": "http://schema.org/CreativeWork",
|
||||
"mainEntity": {
|
||||
"@context": ["https://www.w3.org/ns/activitystreams", {"@language": "ja"}],
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"@language": "ja"
|
||||
}
|
||||
],
|
||||
"type": "Person",
|
||||
"id": "https://kenzoishii.example.com/",
|
||||
"following": "https://kenzoishii.example.com/following.json",
|
||||
|
@ -4959,7 +5000,9 @@
|
|||
"preferredUsername": "kenzoishii",
|
||||
"name": "石井健蔵",
|
||||
"summary": "この方はただの例です",
|
||||
"icon": ["https://kenzoishii.example.com/image/165987aklre4"]
|
||||
"icon": [
|
||||
"https://kenzoishii.example.com/image/165987aklre4"
|
||||
]
|
||||
},
|
||||
"name": "Example 9"
|
||||
},
|
||||
|
@ -5016,7 +5059,12 @@
|
|||
"id": "https://www.w3.org/TR/activitypub/#example9",
|
||||
"type": "http://schema.org/CreativeWork",
|
||||
"mainEntity": {
|
||||
"@context": ["https://www.w3.org/ns/activitystreams", {"@language": "ja"}],
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"@language": "ja"
|
||||
}
|
||||
],
|
||||
"type": "Person",
|
||||
"id": "https://kenzoishii.example.com/",
|
||||
"following": "https://kenzoishii.example.com/following.json",
|
||||
|
@ -5027,7 +5075,9 @@
|
|||
"preferredUsername": "kenzoishii",
|
||||
"name": "石井健蔵",
|
||||
"summary": "この方はただの例です",
|
||||
"icon": ["https://kenzoishii.example.com/image/165987aklre4"]
|
||||
"icon": [
|
||||
"https://kenzoishii.example.com/image/165987aklre4"
|
||||
]
|
||||
},
|
||||
"name": "Example 9"
|
||||
},
|
||||
|
@ -5091,7 +5141,12 @@
|
|||
"id": "https://www.w3.org/TR/activitypub/#example9",
|
||||
"type": "http://schema.org/CreativeWork",
|
||||
"mainEntity": {
|
||||
"@context": ["https://www.w3.org/ns/activitystreams", {"@language": "ja"}],
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"@language": "ja"
|
||||
}
|
||||
],
|
||||
"type": "Person",
|
||||
"id": "https://kenzoishii.example.com/",
|
||||
"following": "https://kenzoishii.example.com/following.json",
|
||||
|
@ -5102,7 +5157,9 @@
|
|||
"preferredUsername": "kenzoishii",
|
||||
"name": "石井健蔵",
|
||||
"summary": "この方はただの例です",
|
||||
"icon": ["https://kenzoishii.example.com/image/165987aklre4"]
|
||||
"icon": [
|
||||
"https://kenzoishii.example.com/image/165987aklre4"
|
||||
]
|
||||
},
|
||||
"name": "Example 9"
|
||||
},
|
||||
|
@ -5166,7 +5223,12 @@
|
|||
"id": "https://www.w3.org/TR/activitypub/#example9",
|
||||
"type": "http://schema.org/CreativeWork",
|
||||
"mainEntity": {
|
||||
"@context": ["https://www.w3.org/ns/activitystreams", {"@language": "ja"}],
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"@language": "ja"
|
||||
}
|
||||
],
|
||||
"type": "Person",
|
||||
"id": "https://kenzoishii.example.com/",
|
||||
"following": "https://kenzoishii.example.com/following.json",
|
||||
|
@ -5177,7 +5239,9 @@
|
|||
"preferredUsername": "kenzoishii",
|
||||
"name": "石井健蔵",
|
||||
"summary": "この方はただの例です",
|
||||
"icon": ["https://kenzoishii.example.com/image/165987aklre4"]
|
||||
"icon": [
|
||||
"https://kenzoishii.example.com/image/165987aklre4"
|
||||
]
|
||||
},
|
||||
"name": "Example 9"
|
||||
},
|
||||
|
@ -5448,4 +5512,4 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -374,6 +374,9 @@ var ActivityStreamsRepliesPropertyName string = "replies"
|
|||
// ActivityStreamsResultPropertyName is the string literal of the name for the result property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsResultPropertyName string = "result"
|
||||
|
||||
// ActivityStreamsSensitivePropertyName is the string literal of the name for the sensitive property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsSensitivePropertyName string = "sensitive"
|
||||
|
||||
// ActivityStreamsSharesPropertyName is the string literal of the name for the shares property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsSharesPropertyName string = "shares"
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ import (
|
|||
propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship"
|
||||
propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies"
|
||||
propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result"
|
||||
propertysensitive "github.com/go-fed/activity/streams/impl/activitystreams/property_sensitive"
|
||||
propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares"
|
||||
propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source"
|
||||
propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex"
|
||||
|
@ -214,6 +215,7 @@ func init() {
|
|||
propertyrelationship.SetManager(mgr)
|
||||
propertyreplies.SetManager(mgr)
|
||||
propertyresult.SetManager(mgr)
|
||||
propertysensitive.SetManager(mgr)
|
||||
propertyshares.SetManager(mgr)
|
||||
propertysource.SetManager(mgr)
|
||||
propertystartindex.SetManager(mgr)
|
||||
|
|
|
@ -60,6 +60,7 @@ import (
|
|||
propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship"
|
||||
propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies"
|
||||
propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result"
|
||||
propertysensitive "github.com/go-fed/activity/streams/impl/activitystreams/property_sensitive"
|
||||
propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares"
|
||||
propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source"
|
||||
propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex"
|
||||
|
@ -1616,6 +1617,19 @@ func (this Manager) DeserializeResultPropertyActivityStreams() func(map[string]i
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsSensitiveProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
func (this Manager) DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) {
|
||||
i, err := propertysensitive.DeserializeSensitiveProperty(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeServiceActivityStreams returns the deserialization method for the
|
||||
// "ActivityStreamsService" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
|
|
@ -60,6 +60,7 @@ import (
|
|||
propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship"
|
||||
propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies"
|
||||
propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result"
|
||||
propertysensitive "github.com/go-fed/activity/streams/impl/activitystreams/property_sensitive"
|
||||
propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares"
|
||||
propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source"
|
||||
propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex"
|
||||
|
@ -420,6 +421,12 @@ func NewActivityStreamsResultProperty() vocab.ActivityStreamsResultProperty {
|
|||
return propertyresult.NewActivityStreamsResultProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsActivityStreamsSensitiveProperty creates a new
|
||||
// ActivityStreamsSensitiveProperty
|
||||
func NewActivityStreamsSensitiveProperty() vocab.ActivityStreamsSensitiveProperty {
|
||||
return propertysensitive.NewActivityStreamsSensitiveProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsActivityStreamsSharesProperty creates a new
|
||||
// ActivityStreamsSharesProperty
|
||||
func NewActivityStreamsSharesProperty() vocab.ActivityStreamsSharesProperty {
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package propertysensitive contains the implementation for the sensitive
|
||||
// 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.
|
||||
package propertysensitive
|
|
@ -0,0 +1,15 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertysensitive
|
||||
|
||||
var mgr privateManager
|
||||
|
||||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface{}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
// not use as part of Application behavior. Must be called at golang init time.
|
||||
func SetManager(m privateManager) {
|
||||
mgr = m
|
||||
}
|
|
@ -0,0 +1,531 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertysensitive
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
boolean "github.com/go-fed/activity/streams/values/boolean"
|
||||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// ActivityStreamsSensitivePropertyIterator is an iterator for a property. It is
|
||||
// permitted to be a single default-valued value type.
|
||||
type ActivityStreamsSensitivePropertyIterator struct {
|
||||
xmlschemaBooleanMember bool
|
||||
hasBooleanMember bool
|
||||
unknown interface{}
|
||||
iri *url.URL
|
||||
alias string
|
||||
myIdx int
|
||||
parent vocab.ActivityStreamsSensitiveProperty
|
||||
}
|
||||
|
||||
// NewActivityStreamsSensitivePropertyIterator creates a new
|
||||
// ActivityStreamsSensitive property.
|
||||
func NewActivityStreamsSensitivePropertyIterator() *ActivityStreamsSensitivePropertyIterator {
|
||||
return &ActivityStreamsSensitivePropertyIterator{alias: ""}
|
||||
}
|
||||
|
||||
// deserializeActivityStreamsSensitivePropertyIterator creates an iterator from an
|
||||
// element that has been unmarshalled from a text or binary format.
|
||||
func deserializeActivityStreamsSensitivePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsSensitivePropertyIterator, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
|
||||
alias = a
|
||||
}
|
||||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := boolean.DeserializeBoolean(i); err == nil {
|
||||
this := &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: alias,
|
||||
hasBooleanMember: true,
|
||||
xmlschemaBooleanMember: v,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
this := &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: alias,
|
||||
unknown: i,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
|
||||
// Get returns the value of this property. When IsXMLSchemaBoolean returns false,
|
||||
// Get will return any arbitrary value.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) Get() bool {
|
||||
return this.xmlschemaBooleanMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) HasAny() bool {
|
||||
return this.IsXMLSchemaBoolean() || this.iri != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsXMLSchemaBoolean returns true if this property is set and not an IRI.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) IsXMLSchemaBoolean() bool {
|
||||
return this.hasBooleanMember
|
||||
}
|
||||
|
||||
// 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 (this ActivityStreamsSensitivePropertyIterator) JSONLDContext() map[string]string {
|
||||
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||
var child map[string]string
|
||||
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
code-generation time, this loop should not overwrite an existing key with a
|
||||
new value.
|
||||
*/
|
||||
for k, v := range child {
|
||||
m[k] = v
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// 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 (this ActivityStreamsSensitivePropertyIterator) KindIndex() int {
|
||||
if this.IsXMLSchemaBoolean() {
|
||||
return 0
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
||||
// 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 (this ActivityStreamsSensitivePropertyIterator) LessThan(o vocab.ActivityStreamsSensitivePropertyIterator) bool {
|
||||
// LessThan comparison for if either or both are IRIs.
|
||||
if this.IsIRI() && o.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
} else if this.IsIRI() {
|
||||
// IRIs are always less than other values, none, or unknowns
|
||||
return true
|
||||
} else if o.IsIRI() {
|
||||
// This other, none, or unknown value is always greater than IRIs
|
||||
return false
|
||||
}
|
||||
// LessThan comparison for the single value or unknown value.
|
||||
if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() {
|
||||
// Both are unknowns.
|
||||
return false
|
||||
} else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() {
|
||||
// Values are always greater than unknown values.
|
||||
return false
|
||||
} else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() {
|
||||
// Unknowns are always less than known values.
|
||||
return true
|
||||
} else {
|
||||
// Actual comparison.
|
||||
return boolean.LessBoolean(this.Get(), o.Get())
|
||||
}
|
||||
}
|
||||
|
||||
// Name returns the name of this property: "ActivityStreamsSensitive".
|
||||
func (this ActivityStreamsSensitivePropertyIterator) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "ActivityStreamsSensitive"
|
||||
} else {
|
||||
return "ActivityStreamsSensitive"
|
||||
}
|
||||
}
|
||||
|
||||
// Next returns the next iterator, or nil if there is no next iterator.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) Next() vocab.ActivityStreamsSensitivePropertyIterator {
|
||||
if this.myIdx+1 >= this.parent.Len() {
|
||||
return nil
|
||||
} else {
|
||||
return this.parent.At(this.myIdx + 1)
|
||||
}
|
||||
}
|
||||
|
||||
// Prev returns the previous iterator, or nil if there is no previous iterator.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) Prev() vocab.ActivityStreamsSensitivePropertyIterator {
|
||||
if this.myIdx-1 < 0 {
|
||||
return nil
|
||||
} else {
|
||||
return this.parent.At(this.myIdx - 1)
|
||||
}
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will
|
||||
// return true.
|
||||
func (this *ActivityStreamsSensitivePropertyIterator) Set(v bool) {
|
||||
this.clear()
|
||||
this.xmlschemaBooleanMember = v
|
||||
this.hasBooleanMember = true
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
|
||||
// true.
|
||||
func (this *ActivityStreamsSensitivePropertyIterator) SetIRI(v *url.URL) {
|
||||
this.clear()
|
||||
this.iri = v
|
||||
}
|
||||
|
||||
// clear ensures no value of this property is set. Calling IsXMLSchemaBoolean
|
||||
// afterwards will return false.
|
||||
func (this *ActivityStreamsSensitivePropertyIterator) clear() {
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.hasBooleanMember = false
|
||||
}
|
||||
|
||||
// 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 (this ActivityStreamsSensitivePropertyIterator) serialize() (interface{}, error) {
|
||||
if this.IsXMLSchemaBoolean() {
|
||||
return boolean.SerializeBoolean(this.Get())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
}
|
||||
|
||||
// ActivityStreamsSensitiveProperty is the non-functional property "sensitive". It
|
||||
// is permitted to have one or more values, and of different value types.
|
||||
type ActivityStreamsSensitiveProperty struct {
|
||||
properties []*ActivityStreamsSensitivePropertyIterator
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeSensitiveProperty creates a "sensitive" property from an interface
|
||||
// representation that has been unmarshalled from a text or binary format.
|
||||
func DeserializeSensitiveProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
|
||||
alias = a
|
||||
}
|
||||
propName := "sensitive"
|
||||
if len(alias) > 0 {
|
||||
propName = fmt.Sprintf("%s:%s", alias, "sensitive")
|
||||
}
|
||||
i, ok := m[propName]
|
||||
|
||||
if ok {
|
||||
this := &ActivityStreamsSensitiveProperty{
|
||||
alias: alias,
|
||||
properties: []*ActivityStreamsSensitivePropertyIterator{},
|
||||
}
|
||||
if list, ok := i.([]interface{}); ok {
|
||||
for _, iterator := range list {
|
||||
if p, err := deserializeActivityStreamsSensitivePropertyIterator(iterator, aliasMap); err != nil {
|
||||
return this, err
|
||||
} else if p != nil {
|
||||
this.properties = append(this.properties, p)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if p, err := deserializeActivityStreamsSensitivePropertyIterator(i, aliasMap); err != nil {
|
||||
return this, err
|
||||
} else if p != nil {
|
||||
this.properties = append(this.properties, p)
|
||||
}
|
||||
}
|
||||
// Set up the properties for iteration.
|
||||
for idx, ele := range this.properties {
|
||||
ele.parent = this
|
||||
ele.myIdx = idx
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewActivityStreamsSensitiveProperty creates a new sensitive property.
|
||||
func NewActivityStreamsSensitiveProperty() *ActivityStreamsSensitiveProperty {
|
||||
return &ActivityStreamsSensitiveProperty{alias: ""}
|
||||
}
|
||||
|
||||
// AppendIRI appends an IRI value to the back of a list of the property "sensitive"
|
||||
func (this *ActivityStreamsSensitiveProperty) AppendIRI(v *url.URL) {
|
||||
this.properties = append(this.properties, &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
iri: v,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendXMLSchemaBoolean appends a boolean value to the back of a list of the
|
||||
// property "sensitive". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsSensitiveProperty) AppendXMLSchemaBoolean(v bool) {
|
||||
this.properties = append(this.properties, &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
hasBooleanMember: true,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
xmlschemaBooleanMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// At returns the property value for the specified index. Panics if the index is
|
||||
// out of bounds.
|
||||
func (this ActivityStreamsSensitiveProperty) At(index int) vocab.ActivityStreamsSensitivePropertyIterator {
|
||||
return this.properties[index]
|
||||
}
|
||||
|
||||
// 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 (this ActivityStreamsSensitiveProperty) Begin() vocab.ActivityStreamsSensitivePropertyIterator {
|
||||
if this.Empty() {
|
||||
return nil
|
||||
} else {
|
||||
return this.properties[0]
|
||||
}
|
||||
}
|
||||
|
||||
// Empty returns returns true if there are no elements.
|
||||
func (this ActivityStreamsSensitiveProperty) Empty() bool {
|
||||
return this.Len() == 0
|
||||
}
|
||||
|
||||
// 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 (this ActivityStreamsSensitiveProperty) End() vocab.ActivityStreamsSensitivePropertyIterator {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Insert inserts an IRI value at the specified index for a property "sensitive".
|
||||
// Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsSensitiveProperty) InsertIRI(idx int, v *url.URL) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
iri: v,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertXMLSchemaBoolean inserts a boolean value at the specified index for a
|
||||
// property "sensitive". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsSensitiveProperty) InsertXMLSchemaBoolean(idx int, v bool) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
hasBooleanMember: true,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
xmlschemaBooleanMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// 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 (this ActivityStreamsSensitiveProperty) JSONLDContext() map[string]string {
|
||||
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||
for _, elem := range this.properties {
|
||||
child := elem.JSONLDContext()
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
code-generation time, this loop should not overwrite an existing key with a
|
||||
new value.
|
||||
*/
|
||||
for k, v := range child {
|
||||
m[k] = v
|
||||
}
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// 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 (this ActivityStreamsSensitiveProperty) KindIndex(idx int) int {
|
||||
return this.properties[idx].KindIndex()
|
||||
}
|
||||
|
||||
// Len returns the number of values that exist for the "sensitive" property.
|
||||
func (this ActivityStreamsSensitiveProperty) Len() (length int) {
|
||||
return len(this.properties)
|
||||
}
|
||||
|
||||
// Less computes whether another property is less than this one. Mixing types
|
||||
// results in a consistent but arbitrary ordering
|
||||
func (this ActivityStreamsSensitiveProperty) Less(i, j int) bool {
|
||||
idx1 := this.KindIndex(i)
|
||||
idx2 := this.KindIndex(j)
|
||||
if idx1 < idx2 {
|
||||
return true
|
||||
} else if idx1 == idx2 {
|
||||
if idx1 == 0 {
|
||||
lhs := this.properties[i].Get()
|
||||
rhs := this.properties[j].Get()
|
||||
return boolean.LessBoolean(lhs, rhs)
|
||||
} else if idx1 == -2 {
|
||||
lhs := this.properties[i].GetIRI()
|
||||
rhs := this.properties[j].GetIRI()
|
||||
return lhs.String() < rhs.String()
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// 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 (this ActivityStreamsSensitiveProperty) LessThan(o vocab.ActivityStreamsSensitiveProperty) bool {
|
||||
l1 := this.Len()
|
||||
l2 := o.Len()
|
||||
l := l1
|
||||
if l2 < l1 {
|
||||
l = l2
|
||||
}
|
||||
for i := 0; i < l; i++ {
|
||||
if this.properties[i].LessThan(o.At(i)) {
|
||||
return true
|
||||
} else if o.At(i).LessThan(this.properties[i]) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return l1 < l2
|
||||
}
|
||||
|
||||
// Name returns the name of this property ("sensitive") with any alias.
|
||||
func (this ActivityStreamsSensitiveProperty) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "sensitive"
|
||||
} else {
|
||||
return "sensitive"
|
||||
}
|
||||
}
|
||||
|
||||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "sensitive".
|
||||
func (this *ActivityStreamsSensitiveProperty) PrependIRI(v *url.URL) {
|
||||
this.properties = append([]*ActivityStreamsSensitivePropertyIterator{{
|
||||
alias: this.alias,
|
||||
iri: v,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependXMLSchemaBoolean prepends a boolean value to the front of a list of the
|
||||
// property "sensitive". Invalidates all iterators.
|
||||
func (this *ActivityStreamsSensitiveProperty) PrependXMLSchemaBoolean(v bool) {
|
||||
this.properties = append([]*ActivityStreamsSensitivePropertyIterator{{
|
||||
alias: this.alias,
|
||||
hasBooleanMember: true,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
xmlschemaBooleanMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// Remove deletes an element at the specified index from a list of the property
|
||||
// "sensitive", regardless of its type. Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsSensitiveProperty) Remove(idx int) {
|
||||
(this.properties)[idx].parent = nil
|
||||
copy((this.properties)[idx:], (this.properties)[idx+1:])
|
||||
(this.properties)[len(this.properties)-1] = &ActivityStreamsSensitivePropertyIterator{}
|
||||
this.properties = (this.properties)[:len(this.properties)-1]
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// 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 (this ActivityStreamsSensitiveProperty) Serialize() (interface{}, error) {
|
||||
s := make([]interface{}, 0, len(this.properties))
|
||||
for _, iterator := range this.properties {
|
||||
if b, err := iterator.serialize(); err != nil {
|
||||
return s, err
|
||||
} else {
|
||||
s = append(s, b)
|
||||
}
|
||||
}
|
||||
// Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
|
||||
if len(s) == 1 {
|
||||
return s[0], nil
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
// Set sets a boolean value to be at the specified index for the property
|
||||
// "sensitive". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
func (this *ActivityStreamsSensitiveProperty) Set(idx int, v bool) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
hasBooleanMember: true,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
xmlschemaBooleanMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "sensitive". Panics if the index is out of bounds.
|
||||
func (this *ActivityStreamsSensitiveProperty) SetIRI(idx int, v *url.URL) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
iri: v,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
}
|
||||
}
|
||||
|
||||
// Swap swaps the location of values at two indices for the "sensitive" property.
|
||||
func (this ActivityStreamsSensitiveProperty) Swap(i, j int) {
|
||||
this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
|
||||
}
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -76,6 +76,7 @@ type ActivityStreamsAccept struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -304,6 +305,11 @@ func DeserializeAccept(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -419,6 +425,8 @@ func DeserializeAccept(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -631,6 +639,12 @@ func (this ActivityStreamsAccept) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsAccept) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsAccept) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -747,6 +761,7 @@ func (this ActivityStreamsAccept) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1157,6 +1172,20 @@ func (this ActivityStreamsAccept) LessThan(o vocab.ActivityStreamsAccept) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1544,6 +1573,14 @@ func (this ActivityStreamsAccept) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1773,6 +1810,11 @@ func (this *ActivityStreamsAccept) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsAccept) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsAccept) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -56,6 +56,7 @@ type ActivityStreamsActivity struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -284,6 +285,11 @@ func DeserializeActivity(m map[string]interface{}, aliasMap map[string]string) (
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -399,6 +405,8 @@ func DeserializeActivity(m map[string]interface{}, aliasMap map[string]string) (
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -611,6 +619,12 @@ func (this ActivityStreamsActivity) GetActivityStreamsResult() vocab.ActivityStr
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsActivity) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsActivity) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -727,6 +741,7 @@ func (this ActivityStreamsActivity) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1137,6 +1152,20 @@ func (this ActivityStreamsActivity) LessThan(o vocab.ActivityStreamsActivity) bo
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1524,6 +1553,14 @@ func (this ActivityStreamsActivity) Serialize() (map[string]interface{}, error)
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1753,6 +1790,11 @@ func (this *ActivityStreamsActivity) SetActivityStreamsResult(i vocab.ActivitySt
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsActivity) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsActivity) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -76,6 +76,7 @@ type ActivityStreamsAdd struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -299,6 +300,11 @@ func DeserializeAdd(m map[string]interface{}, aliasMap map[string]string) (*Acti
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -414,6 +420,8 @@ func DeserializeAdd(m map[string]interface{}, aliasMap map[string]string) (*Acti
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -626,6 +634,12 @@ func (this ActivityStreamsAdd) GetActivityStreamsResult() vocab.ActivityStreamsR
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsAdd) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsAdd) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -742,6 +756,7 @@ func (this ActivityStreamsAdd) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1152,6 +1167,20 @@ func (this ActivityStreamsAdd) LessThan(o vocab.ActivityStreamsAdd) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1539,6 +1568,14 @@ func (this ActivityStreamsAdd) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1768,6 +1805,11 @@ func (this *ActivityStreamsAdd) SetActivityStreamsResult(i vocab.ActivityStreams
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsAdd) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsAdd) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -58,6 +58,7 @@ type ActivityStreamsAnnounce struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -281,6 +282,11 @@ func DeserializeAnnounce(m map[string]interface{}, aliasMap map[string]string) (
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -396,6 +402,8 @@ func DeserializeAnnounce(m map[string]interface{}, aliasMap map[string]string) (
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -608,6 +616,12 @@ func (this ActivityStreamsAnnounce) GetActivityStreamsResult() vocab.ActivityStr
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsAnnounce) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsAnnounce) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -724,6 +738,7 @@ func (this ActivityStreamsAnnounce) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1134,6 +1149,20 @@ func (this ActivityStreamsAnnounce) LessThan(o vocab.ActivityStreamsAnnounce) bo
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1521,6 +1550,14 @@ func (this ActivityStreamsAnnounce) Serialize() (map[string]interface{}, error)
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1750,6 +1787,11 @@ func (this *ActivityStreamsAnnounce) SetActivityStreamsResult(i vocab.ActivitySt
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsAnnounce) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsAnnounce) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -150,6 +150,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsApplication struct {
|
|||
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -303,6 +304,11 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -432,6 +438,8 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -662,6 +670,12 @@ func (this ActivityStreamsApplication) GetActivityStreamsReplies() vocab.Activit
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsApplication) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsApplication) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -801,6 +815,7 @@ func (this ActivityStreamsApplication) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1295,6 +1310,20 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1730,6 +1759,14 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1975,6 +2012,11 @@ func (this *ActivityStreamsApplication) SetActivityStreamsReplies(i vocab.Activi
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsApplication) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsApplication) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -120,6 +120,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -57,6 +57,7 @@ type ActivityStreamsArrive struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -275,6 +276,11 @@ func DeserializeArrive(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -388,6 +394,8 @@ func DeserializeArrive(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -594,6 +602,12 @@ func (this ActivityStreamsArrive) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsArrive) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsArrive) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -709,6 +723,7 @@ func (this ActivityStreamsArrive) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1105,6 +1120,20 @@ func (this ActivityStreamsArrive) LessThan(o vocab.ActivityStreamsArrive) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1484,6 +1513,14 @@ func (this ActivityStreamsArrive) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1708,6 +1745,11 @@ func (this *ActivityStreamsArrive) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsArrive) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsArrive) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -108,6 +108,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -43,6 +43,7 @@ type ActivityStreamsArticle struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -245,6 +246,11 @@ func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -347,6 +353,8 @@ func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -533,6 +541,12 @@ func (this ActivityStreamsArticle) GetActivityStreamsReplies() vocab.ActivityStr
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsArticle) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsArticle) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -639,6 +653,7 @@ func (this ActivityStreamsArticle) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -992,6 +1007,20 @@ func (this ActivityStreamsArticle) LessThan(o vocab.ActivityStreamsArticle) bool
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1333,6 +1362,14 @@ func (this ActivityStreamsArticle) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1534,6 +1571,11 @@ func (this *ActivityStreamsArticle) SetActivityStreamsReplies(i vocab.ActivitySt
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsArticle) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsArticle) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -112,6 +112,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -46,6 +46,7 @@ type ActivityStreamsAudio struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -253,6 +254,11 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -357,6 +363,8 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -543,6 +551,12 @@ func (this ActivityStreamsAudio) GetActivityStreamsReplies() vocab.ActivityStrea
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsAudio) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsAudio) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -655,6 +669,7 @@ func (this ActivityStreamsAudio) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1022,6 +1037,20 @@ func (this ActivityStreamsAudio) LessThan(o vocab.ActivityStreamsAudio) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1371,6 +1400,14 @@ func (this ActivityStreamsAudio) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1572,6 +1609,11 @@ func (this *ActivityStreamsAudio) SetActivityStreamsReplies(i vocab.ActivityStre
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsAudio) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsAudio) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -49,6 +49,7 @@ type ActivityStreamsBlock struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -272,6 +273,11 @@ func DeserializeBlock(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -387,6 +393,8 @@ func DeserializeBlock(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -599,6 +607,12 @@ func (this ActivityStreamsBlock) GetActivityStreamsResult() vocab.ActivityStream
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsBlock) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsBlock) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -715,6 +729,7 @@ func (this ActivityStreamsBlock) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1125,6 +1140,20 @@ func (this ActivityStreamsBlock) LessThan(o vocab.ActivityStreamsBlock) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1512,6 +1541,14 @@ func (this ActivityStreamsBlock) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1741,6 +1778,11 @@ func (this *ActivityStreamsBlock) SetActivityStreamsResult(i vocab.ActivityStrea
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsBlock) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsBlock) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -57,6 +57,7 @@ type ActivityStreamsCollection struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -285,6 +286,11 @@ func DeserializeCollection(m map[string]interface{}, aliasMap map[string]string)
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -400,6 +406,8 @@ func DeserializeCollection(m map[string]interface{}, aliasMap map[string]string)
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -612,6 +620,12 @@ func (this ActivityStreamsCollection) GetActivityStreamsReplies() vocab.Activity
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsCollection) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsCollection) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -728,6 +742,7 @@ func (this ActivityStreamsCollection) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1138,6 +1153,20 @@ func (this ActivityStreamsCollection) LessThan(o vocab.ActivityStreamsCollection
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1525,6 +1554,14 @@ func (this ActivityStreamsCollection) Serialize() (map[string]interface{}, error
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1754,6 +1791,11 @@ func (this *ActivityStreamsCollection) SetActivityStreamsReplies(i vocab.Activit
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsCollection) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsCollection) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -136,6 +136,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -61,6 +61,7 @@ type ActivityStreamsCollectionPage struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -304,6 +305,11 @@ func DeserializeCollectionPage(m map[string]interface{}, aliasMap map[string]str
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -425,6 +431,8 @@ func DeserializeCollectionPage(m map[string]interface{}, aliasMap map[string]str
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -655,6 +663,12 @@ func (this ActivityStreamsCollectionPage) GetActivityStreamsReplies() vocab.Acti
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsCollectionPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsCollectionPage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -774,6 +788,7 @@ func (this ActivityStreamsCollectionPage) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1226,6 +1241,20 @@ func (this ActivityStreamsCollectionPage) LessThan(o vocab.ActivityStreamsCollec
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1637,6 +1666,14 @@ func (this ActivityStreamsCollectionPage) Serialize() (map[string]interface{}, e
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1881,6 +1918,11 @@ func (this *ActivityStreamsCollectionPage) SetActivityStreamsReplies(i vocab.Act
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsCollectionPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsCollectionPage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -53,6 +53,7 @@ type ActivityStreamsCreate struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -276,6 +277,11 @@ func DeserializeCreate(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -391,6 +397,8 @@ func DeserializeCreate(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -603,6 +611,12 @@ func (this ActivityStreamsCreate) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsCreate) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsCreate) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -719,6 +733,7 @@ func (this ActivityStreamsCreate) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1129,6 +1144,20 @@ func (this ActivityStreamsCreate) LessThan(o vocab.ActivityStreamsCreate) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1516,6 +1545,14 @@ func (this ActivityStreamsCreate) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1745,6 +1782,11 @@ func (this *ActivityStreamsCreate) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsCreate) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsCreate) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -54,6 +54,7 @@ type ActivityStreamsDelete struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -277,6 +278,11 @@ func DeserializeDelete(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -392,6 +398,8 @@ func DeserializeDelete(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -604,6 +612,12 @@ func (this ActivityStreamsDelete) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsDelete) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsDelete) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -720,6 +734,7 @@ func (this ActivityStreamsDelete) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1130,6 +1145,20 @@ func (this ActivityStreamsDelete) LessThan(o vocab.ActivityStreamsDelete) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1517,6 +1546,14 @@ func (this ActivityStreamsDelete) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1746,6 +1783,11 @@ func (this *ActivityStreamsDelete) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsDelete) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsDelete) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -46,6 +46,7 @@ type ActivityStreamsDislike struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -249,6 +250,11 @@ func DeserializeDislike(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -364,6 +370,8 @@ func DeserializeDislike(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -596,6 +604,12 @@ func (this ActivityStreamsDislike) GetActivityStreamsResult() vocab.ActivityStre
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsDislike) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsDislike) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -712,6 +726,7 @@ func (this ActivityStreamsDislike) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1122,6 +1137,20 @@ func (this ActivityStreamsDislike) LessThan(o vocab.ActivityStreamsDislike) bool
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1509,6 +1538,14 @@ func (this ActivityStreamsDislike) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1738,6 +1775,11 @@ func (this *ActivityStreamsDislike) SetActivityStreamsResult(i vocab.ActivityStr
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsDislike) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsDislike) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -112,6 +112,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -42,6 +42,7 @@ type ActivityStreamsDocument struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -229,6 +230,11 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -333,6 +339,8 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -544,6 +552,12 @@ func (this ActivityStreamsDocument) GetActivityStreamsReplies() vocab.ActivitySt
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsDocument) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsDocument) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -656,6 +670,7 @@ func (this ActivityStreamsDocument) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1023,6 +1038,20 @@ func (this ActivityStreamsDocument) LessThan(o vocab.ActivityStreamsDocument) bo
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1372,6 +1401,14 @@ func (this ActivityStreamsDocument) Serialize() (map[string]interface{}, error)
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1573,6 +1610,11 @@ func (this *ActivityStreamsDocument) SetActivityStreamsReplies(i vocab.ActivityS
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsDocument) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsDocument) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -108,6 +108,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -42,6 +42,7 @@ type ActivityStreamsEvent struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -224,6 +225,11 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -326,6 +332,8 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -532,6 +540,12 @@ func (this ActivityStreamsEvent) GetActivityStreamsReplies() vocab.ActivityStrea
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsEvent) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsEvent) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -638,6 +652,7 @@ func (this ActivityStreamsEvent) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -991,6 +1006,20 @@ func (this ActivityStreamsEvent) LessThan(o vocab.ActivityStreamsEvent) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1332,6 +1361,14 @@ func (this ActivityStreamsEvent) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1533,6 +1570,11 @@ func (this *ActivityStreamsEvent) SetActivityStreamsReplies(i vocab.ActivityStre
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsEvent) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsEvent) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -51,6 +51,7 @@ type ActivityStreamsFlag struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -254,6 +255,11 @@ func DeserializeFlag(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -369,6 +375,8 @@ func DeserializeFlag(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -601,6 +609,12 @@ func (this ActivityStreamsFlag) GetActivityStreamsResult() vocab.ActivityStreams
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsFlag) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsFlag) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -717,6 +731,7 @@ func (this ActivityStreamsFlag) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1127,6 +1142,20 @@ func (this ActivityStreamsFlag) LessThan(o vocab.ActivityStreamsFlag) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1514,6 +1543,14 @@ func (this ActivityStreamsFlag) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1743,6 +1780,11 @@ func (this *ActivityStreamsFlag) SetActivityStreamsResult(i vocab.ActivityStream
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsFlag) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsFlag) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -55,6 +55,7 @@ type ActivityStreamsFollow struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -258,6 +259,11 @@ func DeserializeFollow(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -373,6 +379,8 @@ func DeserializeFollow(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -605,6 +613,12 @@ func (this ActivityStreamsFollow) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsFollow) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsFollow) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -721,6 +735,7 @@ func (this ActivityStreamsFollow) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1131,6 +1146,20 @@ func (this ActivityStreamsFollow) LessThan(o vocab.ActivityStreamsFollow) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1518,6 +1547,14 @@ func (this ActivityStreamsFollow) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1747,6 +1784,11 @@ func (this *ActivityStreamsFollow) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsFollow) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsFollow) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -150,6 +150,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsGroup struct {
|
|||
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -283,6 +284,11 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -412,6 +418,8 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -662,6 +670,12 @@ func (this ActivityStreamsGroup) GetActivityStreamsReplies() vocab.ActivityStrea
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsGroup) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsGroup) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -801,6 +815,7 @@ func (this ActivityStreamsGroup) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1295,6 +1310,20 @@ func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1730,6 +1759,14 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1975,6 +2012,11 @@ func (this *ActivityStreamsGroup) SetActivityStreamsReplies(i vocab.ActivityStre
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsGroup) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsGroup) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsIgnore struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -253,6 +254,11 @@ func DeserializeIgnore(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -368,6 +374,8 @@ func DeserializeIgnore(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -605,6 +613,12 @@ func (this ActivityStreamsIgnore) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsIgnore) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsIgnore) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -721,6 +735,7 @@ func (this ActivityStreamsIgnore) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1131,6 +1146,20 @@ func (this ActivityStreamsIgnore) LessThan(o vocab.ActivityStreamsIgnore) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1518,6 +1547,14 @@ func (this ActivityStreamsIgnore) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1747,6 +1784,11 @@ func (this *ActivityStreamsIgnore) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsIgnore) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsIgnore) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -116,6 +116,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -54,6 +54,7 @@ type ActivityStreamsImage struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -247,6 +248,11 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -358,6 +364,8 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -572,6 +580,12 @@ func (this ActivityStreamsImage) GetActivityStreamsReplies() vocab.ActivityStrea
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsImage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsImage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -691,6 +705,7 @@ func (this ActivityStreamsImage) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1073,6 +1088,20 @@ func (this ActivityStreamsImage) LessThan(o vocab.ActivityStreamsImage) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1444,6 +1473,14 @@ func (this ActivityStreamsImage) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1658,6 +1695,11 @@ func (this *ActivityStreamsImage) SetActivityStreamsReplies(i vocab.ActivityStre
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsImage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsImage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -120,6 +120,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -53,6 +53,7 @@ type ActivityStreamsIntransitiveActivity struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -251,6 +252,11 @@ func DeserializeIntransitiveActivity(m map[string]interface{}, aliasMap map[stri
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -364,6 +370,8 @@ func DeserializeIntransitiveActivity(m map[string]interface{}, aliasMap map[stri
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -596,6 +604,12 @@ func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsResult() vocab
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -713,6 +727,7 @@ func (this ActivityStreamsIntransitiveActivity) JSONLDContext() map[string]strin
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1109,6 +1124,20 @@ func (this ActivityStreamsIntransitiveActivity) LessThan(o vocab.ActivityStreams
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1488,6 +1517,14 @@ func (this ActivityStreamsIntransitiveActivity) Serialize() (map[string]interfac
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1712,6 +1749,11 @@ func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsResult(i voca
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -63,6 +63,7 @@ type ActivityStreamsInvite struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -266,6 +267,11 @@ func DeserializeInvite(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -381,6 +387,8 @@ func DeserializeInvite(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -613,6 +621,12 @@ func (this ActivityStreamsInvite) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsInvite) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsInvite) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -729,6 +743,7 @@ func (this ActivityStreamsInvite) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1139,6 +1154,20 @@ func (this ActivityStreamsInvite) LessThan(o vocab.ActivityStreamsInvite) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1526,6 +1555,14 @@ func (this ActivityStreamsInvite) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1755,6 +1792,11 @@ func (this *ActivityStreamsInvite) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsInvite) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsInvite) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -53,6 +53,7 @@ type ActivityStreamsJoin struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -256,6 +257,11 @@ func DeserializeJoin(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -371,6 +377,8 @@ func DeserializeJoin(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -603,6 +611,12 @@ func (this ActivityStreamsJoin) GetActivityStreamsResult() vocab.ActivityStreams
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsJoin) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsJoin) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -719,6 +733,7 @@ func (this ActivityStreamsJoin) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1129,6 +1144,20 @@ func (this ActivityStreamsJoin) LessThan(o vocab.ActivityStreamsJoin) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1516,6 +1545,14 @@ func (this ActivityStreamsJoin) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1745,6 +1782,11 @@ func (this *ActivityStreamsJoin) SetActivityStreamsResult(i vocab.ActivityStream
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsJoin) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsJoin) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -67,6 +67,7 @@ type ActivityStreamsLeave struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -270,6 +271,11 @@ func DeserializeLeave(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -385,6 +391,8 @@ func DeserializeLeave(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -617,6 +625,12 @@ func (this ActivityStreamsLeave) GetActivityStreamsResult() vocab.ActivityStream
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsLeave) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsLeave) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -733,6 +747,7 @@ func (this ActivityStreamsLeave) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1143,6 +1158,20 @@ func (this ActivityStreamsLeave) LessThan(o vocab.ActivityStreamsLeave) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1530,6 +1559,14 @@ func (this ActivityStreamsLeave) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1759,6 +1796,11 @@ func (this *ActivityStreamsLeave) SetActivityStreamsResult(i vocab.ActivityStrea
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsLeave) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsLeave) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsLike struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -253,6 +254,11 @@ func DeserializeLike(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -368,6 +374,8 @@ func DeserializeLike(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -600,6 +608,12 @@ func (this ActivityStreamsLike) GetActivityStreamsResult() vocab.ActivityStreams
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsLike) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsLike) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -716,6 +730,7 @@ func (this ActivityStreamsLike) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1126,6 +1141,20 @@ func (this ActivityStreamsLike) LessThan(o vocab.ActivityStreamsLike) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1513,6 +1542,14 @@ func (this ActivityStreamsLike) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1742,6 +1779,11 @@ func (this *ActivityStreamsLike) SetActivityStreamsResult(i vocab.ActivityStream
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsLike) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsLike) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -49,6 +49,7 @@ type ActivityStreamsListen struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -252,6 +253,11 @@ func DeserializeListen(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -367,6 +373,8 @@ func DeserializeListen(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -599,6 +607,12 @@ func (this ActivityStreamsListen) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsListen) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsListen) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -715,6 +729,7 @@ func (this ActivityStreamsListen) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1125,6 +1140,20 @@ func (this ActivityStreamsListen) LessThan(o vocab.ActivityStreamsListen) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1512,6 +1541,14 @@ func (this ActivityStreamsListen) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1741,6 +1778,11 @@ func (this *ActivityStreamsListen) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsListen) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsListen) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -58,6 +58,7 @@ type ActivityStreamsMove struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -261,6 +262,11 @@ func DeserializeMove(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -376,6 +382,8 @@ func DeserializeMove(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -608,6 +616,12 @@ func (this ActivityStreamsMove) GetActivityStreamsResult() vocab.ActivityStreams
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsMove) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsMove) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -724,6 +738,7 @@ func (this ActivityStreamsMove) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1134,6 +1149,20 @@ func (this ActivityStreamsMove) LessThan(o vocab.ActivityStreamsMove) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1521,6 +1550,14 @@ func (this ActivityStreamsMove) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1750,6 +1787,11 @@ func (this *ActivityStreamsMove) SetActivityStreamsResult(i vocab.ActivityStream
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsMove) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsMove) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -108,6 +108,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -42,6 +42,7 @@ type ActivityStreamsNote struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -224,6 +225,11 @@ func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -326,6 +332,8 @@ func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -532,6 +540,12 @@ func (this ActivityStreamsNote) GetActivityStreamsReplies() vocab.ActivityStream
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsNote) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsNote) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -638,6 +652,7 @@ func (this ActivityStreamsNote) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -991,6 +1006,20 @@ func (this ActivityStreamsNote) LessThan(o vocab.ActivityStreamsNote) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1332,6 +1361,14 @@ func (this ActivityStreamsNote) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1533,6 +1570,11 @@ func (this *ActivityStreamsNote) SetActivityStreamsReplies(i vocab.ActivityStrea
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsNote) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsNote) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -108,6 +108,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -44,6 +44,7 @@ type ActivityStreamsObject struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -221,6 +222,11 @@ func DeserializeObject(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -323,6 +329,8 @@ func DeserializeObject(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -534,6 +542,12 @@ func (this ActivityStreamsObject) GetActivityStreamsReplies() vocab.ActivityStre
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsObject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsObject) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -640,6 +654,7 @@ func (this ActivityStreamsObject) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -993,6 +1008,20 @@ func (this ActivityStreamsObject) LessThan(o vocab.ActivityStreamsObject) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1334,6 +1363,14 @@ func (this ActivityStreamsObject) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1535,6 +1572,11 @@ func (this *ActivityStreamsObject) SetActivityStreamsReplies(i vocab.ActivityStr
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsObject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsObject) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -57,6 +57,7 @@ type ActivityStreamsOffer struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -260,6 +261,11 @@ func DeserializeOffer(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -375,6 +381,8 @@ func DeserializeOffer(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -612,6 +620,12 @@ func (this ActivityStreamsOffer) GetActivityStreamsResult() vocab.ActivityStream
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsOffer) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsOffer) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -728,6 +742,7 @@ func (this ActivityStreamsOffer) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1138,6 +1153,20 @@ func (this ActivityStreamsOffer) LessThan(o vocab.ActivityStreamsOffer) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1525,6 +1554,14 @@ func (this ActivityStreamsOffer) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1754,6 +1791,11 @@ func (this *ActivityStreamsOffer) SetActivityStreamsResult(i vocab.ActivityStrea
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsOffer) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsOffer) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -125,6 +125,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -56,6 +56,7 @@ type ActivityStreamsOrderedCollection struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -259,6 +260,11 @@ func DeserializeOrderedCollection(m map[string]interface{}, aliasMap map[string]
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -374,6 +380,8 @@ func DeserializeOrderedCollection(m map[string]interface{}, aliasMap map[string]
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -611,6 +619,12 @@ func (this ActivityStreamsOrderedCollection) GetActivityStreamsReplies() vocab.A
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsOrderedCollection) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsOrderedCollection) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -728,6 +742,7 @@ func (this ActivityStreamsOrderedCollection) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1138,6 +1153,20 @@ func (this ActivityStreamsOrderedCollection) LessThan(o vocab.ActivityStreamsOrd
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1525,6 +1554,14 @@ func (this ActivityStreamsOrderedCollection) Serialize() (map[string]interface{}
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1754,6 +1791,11 @@ func (this *ActivityStreamsOrderedCollection) SetActivityStreamsReplies(i vocab.
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsOrderedCollection) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsOrderedCollection) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -137,6 +137,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -61,6 +61,7 @@ type ActivityStreamsOrderedCollectionPage struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartIndex vocab.ActivityStreamsStartIndexProperty
|
||||
|
@ -280,6 +281,11 @@ func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[str
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -406,6 +412,8 @@ func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[str
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -659,6 +667,12 @@ func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsReplies() voc
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -786,6 +800,7 @@ func (this ActivityStreamsOrderedCollectionPage) JSONLDContext() map[string]stri
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartIndex, m)
|
||||
|
@ -1239,6 +1254,20 @@ func (this ActivityStreamsOrderedCollectionPage) LessThan(o vocab.ActivityStream
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1664,6 +1693,14 @@ func (this ActivityStreamsOrderedCollectionPage) Serialize() (map[string]interfa
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1916,6 +1953,11 @@ func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsReplies(i vo
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -150,6 +150,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsOrganization struct {
|
|||
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -283,6 +284,11 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -412,6 +418,8 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -662,6 +670,12 @@ func (this ActivityStreamsOrganization) GetActivityStreamsReplies() vocab.Activi
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsOrganization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsOrganization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -801,6 +815,7 @@ func (this ActivityStreamsOrganization) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1295,6 +1310,20 @@ func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganiza
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1730,6 +1759,14 @@ func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, err
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1975,6 +2012,11 @@ func (this *ActivityStreamsOrganization) SetActivityStreamsReplies(i vocab.Activ
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsOrganization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsOrganization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -112,6 +112,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -42,6 +42,7 @@ type ActivityStreamsPage struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -229,6 +230,11 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -333,6 +339,8 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -539,6 +547,12 @@ func (this ActivityStreamsPage) GetActivityStreamsReplies() vocab.ActivityStream
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsPage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -651,6 +665,7 @@ func (this ActivityStreamsPage) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1018,6 +1033,20 @@ func (this ActivityStreamsPage) LessThan(o vocab.ActivityStreamsPage) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1367,6 +1396,14 @@ func (this ActivityStreamsPage) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1568,6 +1605,11 @@ func (this *ActivityStreamsPage) SetActivityStreamsReplies(i vocab.ActivityStrea
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsPage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -150,6 +150,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsPerson struct {
|
|||
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -283,6 +284,11 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -412,6 +418,8 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -662,6 +670,12 @@ func (this ActivityStreamsPerson) GetActivityStreamsReplies() vocab.ActivityStre
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsPerson) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsPerson) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -801,6 +815,7 @@ func (this ActivityStreamsPerson) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1295,6 +1310,20 @@ func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1730,6 +1759,14 @@ func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1975,6 +2012,11 @@ func (this *ActivityStreamsPerson) SetActivityStreamsReplies(i vocab.ActivityStr
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsPerson) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsPerson) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -55,6 +55,7 @@ type ActivityStreamsPlace struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsRadius vocab.ActivityStreamsRadiusProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -258,6 +259,11 @@ func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -373,6 +379,8 @@ func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -605,6 +613,12 @@ func (this ActivityStreamsPlace) GetActivityStreamsReplies() vocab.ActivityStrea
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsPlace) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsPlace) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -721,6 +735,7 @@ func (this ActivityStreamsPlace) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsRadius, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1131,6 +1146,20 @@ func (this ActivityStreamsPlace) LessThan(o vocab.ActivityStreamsPlace) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1518,6 +1547,14 @@ func (this ActivityStreamsPlace) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1747,6 +1784,11 @@ func (this *ActivityStreamsPlace) SetActivityStreamsReplies(i vocab.ActivityStre
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsPlace) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsPlace) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -112,6 +112,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -47,6 +47,7 @@ type ActivityStreamsProfile struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -234,6 +235,11 @@ func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -338,6 +344,8 @@ func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -550,6 +558,12 @@ func (this ActivityStreamsProfile) GetActivityStreamsReplies() vocab.ActivityStr
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsProfile) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsProfile) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -657,6 +671,7 @@ func (this ActivityStreamsProfile) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1024,6 +1039,20 @@ func (this ActivityStreamsProfile) LessThan(o vocab.ActivityStreamsProfile) bool
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1373,6 +1402,14 @@ func (this ActivityStreamsProfile) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1579,6 +1616,11 @@ func (this *ActivityStreamsProfile) SetActivityStreamsReplies(i vocab.ActivitySt
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsProfile) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsProfile) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -132,6 +132,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -68,6 +68,7 @@ type ActivityStreamsQuestion struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -282,6 +283,11 @@ func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) (
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -406,6 +412,8 @@ func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) (
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -652,6 +660,12 @@ func (this ActivityStreamsQuestion) GetActivityStreamsResult() vocab.ActivityStr
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsQuestion) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsQuestion) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -776,6 +790,7 @@ func (this ActivityStreamsQuestion) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1215,6 +1230,20 @@ func (this ActivityStreamsQuestion) LessThan(o vocab.ActivityStreamsQuestion) bo
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1632,6 +1661,14 @@ func (this ActivityStreamsQuestion) Serialize() (map[string]interface{}, error)
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1879,6 +1916,11 @@ func (this *ActivityStreamsQuestion) SetActivityStreamsResult(i vocab.ActivitySt
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsQuestion) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsQuestion) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -49,6 +49,7 @@ type ActivityStreamsRead struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -252,6 +253,11 @@ func DeserializeRead(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -367,6 +373,8 @@ func DeserializeRead(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -599,6 +607,12 @@ func (this ActivityStreamsRead) GetActivityStreamsResult() vocab.ActivityStreams
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsRead) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsRead) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -715,6 +729,7 @@ func (this ActivityStreamsRead) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1125,6 +1140,20 @@ func (this ActivityStreamsRead) LessThan(o vocab.ActivityStreamsRead) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1512,6 +1541,14 @@ func (this ActivityStreamsRead) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1741,6 +1778,11 @@ func (this *ActivityStreamsRead) SetActivityStreamsResult(i vocab.ActivityStream
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsRead) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsRead) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -57,6 +57,7 @@ type ActivityStreamsReject struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -260,6 +261,11 @@ func DeserializeReject(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -375,6 +381,8 @@ func DeserializeReject(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -612,6 +620,12 @@ func (this ActivityStreamsReject) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsReject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsReject) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -728,6 +742,7 @@ func (this ActivityStreamsReject) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1138,6 +1153,20 @@ func (this ActivityStreamsReject) LessThan(o vocab.ActivityStreamsReject) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1525,6 +1554,14 @@ func (this ActivityStreamsReject) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1754,6 +1791,11 @@ func (this *ActivityStreamsReject) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsReject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsReject) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -113,6 +113,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -52,6 +52,7 @@ type ActivityStreamsRelationship struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsRelationship vocab.ActivityStreamsRelationshipProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -240,6 +241,11 @@ func DeserializeRelationship(m map[string]interface{}, aliasMap map[string]strin
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -349,6 +355,8 @@ func DeserializeRelationship(m map[string]interface{}, aliasMap map[string]strin
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -563,6 +571,12 @@ func (this ActivityStreamsRelationship) GetActivityStreamsReplies() vocab.Activi
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsRelationship) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsRelationship) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -676,6 +690,7 @@ func (this ActivityStreamsRelationship) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsRelationship, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1044,6 +1059,20 @@ func (this ActivityStreamsRelationship) LessThan(o vocab.ActivityStreamsRelation
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1407,6 +1436,14 @@ func (this ActivityStreamsRelationship) Serialize() (map[string]interface{}, err
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1621,6 +1658,11 @@ func (this *ActivityStreamsRelationship) SetActivityStreamsReplies(i vocab.Activ
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsRelationship) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsRelationship) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -72,6 +72,7 @@ type ActivityStreamsRemove struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -275,6 +276,11 @@ func DeserializeRemove(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -390,6 +396,8 @@ func DeserializeRemove(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -622,6 +630,12 @@ func (this ActivityStreamsRemove) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsRemove) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsRemove) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -738,6 +752,7 @@ func (this ActivityStreamsRemove) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1148,6 +1163,20 @@ func (this ActivityStreamsRemove) LessThan(o vocab.ActivityStreamsRemove) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1535,6 +1564,14 @@ func (this ActivityStreamsRemove) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1764,6 +1801,11 @@ func (this *ActivityStreamsRemove) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsRemove) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsRemove) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -150,6 +150,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsService struct {
|
|||
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -283,6 +284,11 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -412,6 +418,8 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -662,6 +670,12 @@ func (this ActivityStreamsService) GetActivityStreamsReplies() vocab.ActivityStr
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsService) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsService) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -801,6 +815,7 @@ func (this ActivityStreamsService) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1295,6 +1310,20 @@ func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1730,6 +1759,14 @@ func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1975,6 +2012,11 @@ func (this *ActivityStreamsService) SetActivityStreamsReplies(i vocab.ActivitySt
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsService) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsService) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -56,6 +56,7 @@ type ActivityStreamsTentativeAccept struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -259,6 +260,11 @@ func DeserializeTentativeAccept(m map[string]interface{}, aliasMap map[string]st
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -374,6 +380,8 @@ func DeserializeTentativeAccept(m map[string]interface{}, aliasMap map[string]st
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -606,6 +614,12 @@ func (this ActivityStreamsTentativeAccept) GetActivityStreamsResult() vocab.Acti
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsTentativeAccept) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsTentativeAccept) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -723,6 +737,7 @@ func (this ActivityStreamsTentativeAccept) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1133,6 +1148,20 @@ func (this ActivityStreamsTentativeAccept) LessThan(o vocab.ActivityStreamsTenta
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1520,6 +1549,14 @@ func (this ActivityStreamsTentativeAccept) Serialize() (map[string]interface{},
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1749,6 +1786,11 @@ func (this *ActivityStreamsTentativeAccept) SetActivityStreamsResult(i vocab.Act
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsTentativeAccept) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsTentativeAccept) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -56,6 +56,7 @@ type ActivityStreamsTentativeReject struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -259,6 +260,11 @@ func DeserializeTentativeReject(m map[string]interface{}, aliasMap map[string]st
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -374,6 +380,8 @@ func DeserializeTentativeReject(m map[string]interface{}, aliasMap map[string]st
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -606,6 +614,12 @@ func (this ActivityStreamsTentativeReject) GetActivityStreamsResult() vocab.Acti
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsTentativeReject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsTentativeReject) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -723,6 +737,7 @@ func (this ActivityStreamsTentativeReject) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1133,6 +1148,20 @@ func (this ActivityStreamsTentativeReject) LessThan(o vocab.ActivityStreamsTenta
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
return true
|
||||
} else if rhs.LessThan(lhs) {
|
||||
return false
|
||||
}
|
||||
} else if lhs == nil && rhs != nil {
|
||||
// Nil is less than anything else
|
||||
return true
|
||||
} else if rhs != nil && rhs == nil {
|
||||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1520,6 +1549,14 @@ func (this ActivityStreamsTentativeReject) Serialize() (map[string]interface{},
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1749,6 +1786,11 @@ func (this *ActivityStreamsTentativeReject) SetActivityStreamsResult(i vocab.Act
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsTentativeReject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsTentativeReject) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
変更されたファイルが多すぎるため、一部のファイルは表示されません さらに表示
読み込み中…
新しいイシューから参照