mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 13:57:28 -06:00
[feature] Enable federation in/out of profile PropertyValue fields (#1722)
Co-authored-by: kim <grufwub@gmail.com> Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
This commit is contained in:
parent
cbb9e2d3f0
commit
0e29f1f5bb
180 changed files with 9278 additions and 1550 deletions
38
vendor/github.com/superseriousbusiness/activity/pub/side_effect_actor.go
generated
vendored
38
vendor/github.com/superseriousbusiness/activity/pub/side_effect_actor.go
generated
vendored
|
|
@ -21,7 +21,25 @@ var _ DelegateActor = &SideEffectActor{}
|
|||
// Note that when using the SideEffectActor with an application that good-faith
|
||||
// implements its required interfaces, the ActivityPub specification is
|
||||
// guaranteed to be correctly followed.
|
||||
//
|
||||
// When doing deliveries to remote servers via the s2s protocol, the side effect
|
||||
// actor will by default use the Serialize function from the streams package.
|
||||
// However, this can be overridden after the side effect actor is intantiated,
|
||||
// by setting the exposed Serialize function on the struct. For example:
|
||||
//
|
||||
// a := NewSideEffectActor(...)
|
||||
// a.Serialize = func(a vocab.Type) (m map[string]interface{}, e error) {
|
||||
// // Put your custom serializer logic here.
|
||||
// }
|
||||
//
|
||||
// Note that you should only do this *immediately* after instantiating the side
|
||||
// effect actor -- never while your application is already running, as this will
|
||||
// likely cause race conditions or other problems! In most cases, you will never
|
||||
// need to change this; it's provided solely to allow easier customization by
|
||||
// applications.
|
||||
type SideEffectActor struct {
|
||||
Serialize func(a vocab.Type) (m map[string]interface{}, e error)
|
||||
|
||||
common CommonBehavior
|
||||
s2s FederatingProtocol
|
||||
c2s SocialProtocol
|
||||
|
|
@ -38,18 +56,19 @@ type SideEffectActor struct {
|
|||
//
|
||||
// If you are using the returned SideEffectActor for federation, ensure that s2s
|
||||
// is not nil. Likewise, if you are using it for the social protocol, ensure
|
||||
// that c2s is not nil.
|
||||
// that c2s is not nil.
|
||||
func NewSideEffectActor(c CommonBehavior,
|
||||
s2s FederatingProtocol,
|
||||
c2s SocialProtocol,
|
||||
db Database,
|
||||
clock Clock) *SideEffectActor {
|
||||
return &SideEffectActor{
|
||||
common: c,
|
||||
s2s: s2s,
|
||||
c2s: c2s,
|
||||
db: db,
|
||||
clock: clock,
|
||||
Serialize: streams.Serialize,
|
||||
common: c,
|
||||
s2s: s2s,
|
||||
c2s: c2s,
|
||||
db: db,
|
||||
clock: clock,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -451,18 +470,23 @@ func (a *SideEffectActor) WrapInCreate(c context.Context, obj vocab.Type, outbox
|
|||
// deliverToRecipients will take a prepared Activity and send it to specific
|
||||
// recipients on behalf of an actor.
|
||||
func (a *SideEffectActor) deliverToRecipients(c context.Context, boxIRI *url.URL, activity Activity, recipients []*url.URL) error {
|
||||
m, err := streams.Serialize(activity)
|
||||
// Call whichever serializer is
|
||||
// set on the side effect actor.
|
||||
m, err := a.Serialize(activity)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
b, err := json.Marshal(m)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
tp, err := a.common.NewTransport(c, boxIRI, goFedUserAgent())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return tp.BatchDeliver(c, b, recipients)
|
||||
}
|
||||
|
||||
|
|
|
|||
6
vendor/github.com/superseriousbusiness/activity/streams/gen_consts.go
generated
vendored
6
vendor/github.com/superseriousbusiness/activity/streams/gen_consts.go
generated
vendored
|
|
@ -137,6 +137,9 @@ var ActivityStreamsPlaceName string = "Place"
|
|||
// ActivityStreamsProfileName is the string literal of the name for the Profile type in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsProfileName string = "Profile"
|
||||
|
||||
// SchemaPropertyValueName is the string literal of the name for the PropertyValue type in the Schema vocabulary.
|
||||
var SchemaPropertyValueName string = "PropertyValue"
|
||||
|
||||
// W3IDSecurityV1PublicKeyName is the string literal of the name for the PublicKey type in the W3IDSecurityV1 vocabulary.
|
||||
var W3IDSecurityV1PublicKeyName string = "PublicKey"
|
||||
|
||||
|
|
@ -509,6 +512,9 @@ var ActivityStreamsUpdatedPropertyName string = "updated"
|
|||
// ActivityStreamsUrlPropertyName is the string literal of the name for the url property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsUrlPropertyName string = "url"
|
||||
|
||||
// SchemaValuePropertyName is the string literal of the name for the value property in the Schema vocabulary.
|
||||
var SchemaValuePropertyName string = "value"
|
||||
|
||||
// TootVotersCountPropertyName is the string literal of the name for the votersCount property in the Toot vocabulary.
|
||||
var TootVotersCountPropertyName string = "votersCount"
|
||||
|
||||
|
|
|
|||
5
vendor/github.com/superseriousbusiness/activity/streams/gen_init.go
generated
vendored
5
vendor/github.com/superseriousbusiness/activity/streams/gen_init.go
generated
vendored
|
|
@ -158,6 +158,8 @@ import (
|
|||
typerepository "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository"
|
||||
typeticket "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket"
|
||||
typeticketdependency "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency"
|
||||
propertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/property_value"
|
||||
typepropertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
|
||||
propertyblurhash "github.com/superseriousbusiness/activity/streams/impl/toot/property_blurhash"
|
||||
propertydiscoverable "github.com/superseriousbusiness/activity/streams/impl/toot/property_discoverable"
|
||||
propertyfeatured "github.com/superseriousbusiness/activity/streams/impl/toot/property_featured"
|
||||
|
|
@ -340,6 +342,8 @@ func init() {
|
|||
typerepository.SetManager(mgr)
|
||||
typeticket.SetManager(mgr)
|
||||
typeticketdependency.SetManager(mgr)
|
||||
propertyvalue.SetManager(mgr)
|
||||
typepropertyvalue.SetManager(mgr)
|
||||
propertyblurhash.SetManager(mgr)
|
||||
propertydiscoverable.SetManager(mgr)
|
||||
propertyfeatured.SetManager(mgr)
|
||||
|
|
@ -413,6 +417,7 @@ func init() {
|
|||
typerepository.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typeticket.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typeticketdependency.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typepropertyvalue.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty)
|
||||
|
|
|
|||
20
vendor/github.com/superseriousbusiness/activity/streams/gen_json_resolver.go
generated
vendored
20
vendor/github.com/superseriousbusiness/activity/streams/gen_json_resolver.go
generated
vendored
|
|
@ -121,6 +121,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
|
|||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsProfile) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.SchemaPropertyValue) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.W3IDSecurityV1PublicKey) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ForgeFedPush) error:
|
||||
|
|
@ -252,6 +254,13 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
|
|||
if len(TootAlias) > 0 {
|
||||
TootAlias += ":"
|
||||
}
|
||||
SchemaAlias, ok := aliasMap["https://schema.org"]
|
||||
if !ok {
|
||||
SchemaAlias = aliasMap["http://schema.org"]
|
||||
}
|
||||
if len(SchemaAlias) > 0 {
|
||||
SchemaAlias += ":"
|
||||
}
|
||||
W3IDSecurityV1Alias, ok := aliasMap["https://w3id.org/security/v1"]
|
||||
if !ok {
|
||||
W3IDSecurityV1Alias = aliasMap["http://w3id.org/security/v1"]
|
||||
|
|
@ -755,6 +764,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
|
|||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == SchemaAlias+"PropertyValue" {
|
||||
v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, i := range this.callbacks {
|
||||
if fn, ok := i.(func(context.Context, vocab.SchemaPropertyValue) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
} else if typeString == W3IDSecurityV1Alias+"PublicKey" {
|
||||
v, err := mgr.DeserializePublicKeyW3IDSecurityV1()(m, aliasMap)
|
||||
if err != nil {
|
||||
|
|
|
|||
26
vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
generated
vendored
26
vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
generated
vendored
|
|
@ -160,6 +160,8 @@ import (
|
|||
typeticketdependency "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency"
|
||||
propertyid "github.com/superseriousbusiness/activity/streams/impl/jsonld/property_id"
|
||||
propertytype "github.com/superseriousbusiness/activity/streams/impl/jsonld/property_type"
|
||||
propertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/property_value"
|
||||
typepropertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
|
||||
propertyblurhash "github.com/superseriousbusiness/activity/streams/impl/toot/property_blurhash"
|
||||
propertydiscoverable "github.com/superseriousbusiness/activity/streams/impl/toot/property_discoverable"
|
||||
propertyfeatured "github.com/superseriousbusiness/activity/streams/impl/toot/property_featured"
|
||||
|
|
@ -1693,6 +1695,18 @@ func (this Manager) DeserializeProfileActivityStreams() func(map[string]interfac
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializePropertyValueSchema returns the deserialization method for the
|
||||
// "SchemaPropertyValue" non-functional property in the vocabulary "Schema"
|
||||
func (this Manager) DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SchemaPropertyValue, error) {
|
||||
i, err := typepropertyvalue.DeserializePropertyValue(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializePublicKeyPemPropertyW3IDSecurityV1 returns the deserialization
|
||||
// method for the "W3IDSecurityV1PublicKeyPemProperty" non-functional property
|
||||
// in the vocabulary "W3IDSecurityV1"
|
||||
|
|
@ -2311,6 +2325,18 @@ func (this Manager) DeserializeUrlPropertyActivityStreams() func(map[string]inte
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeValuePropertySchema returns the deserialization method for the
|
||||
// "SchemaValueProperty" non-functional property in the vocabulary "Schema"
|
||||
func (this Manager) DeserializeValuePropertySchema() func(map[string]interface{}, map[string]string) (vocab.SchemaValueProperty, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SchemaValueProperty, error) {
|
||||
i, err := propertyvalue.DeserializeValueProperty(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for the
|
||||
// "ActivityStreamsVideo" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
|
|
|||
14
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_disjoint.go
generated
vendored
Normal file
14
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_disjoint.go
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package streams
|
||||
|
||||
import (
|
||||
typepropertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
|
||||
vocab "github.com/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// SchemaPropertyValueIsDisjointWith returns true if PropertyValue is disjoint
|
||||
// with the other's type.
|
||||
func SchemaPropertyValueIsDisjointWith(other vocab.Type) bool {
|
||||
return typepropertyvalue.PropertyValueIsDisjointWith(other)
|
||||
}
|
||||
15
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_extendedby.go
generated
vendored
Normal file
15
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_extendedby.go
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package streams
|
||||
|
||||
import (
|
||||
typepropertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
|
||||
vocab "github.com/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// SchemaPropertyValueIsExtendedBy returns true if the other's type extends from
|
||||
// PropertyValue. Note that it returns false if the types are the same; see
|
||||
// the "IsOrExtends" variant instead.
|
||||
func SchemaPropertyValueIsExtendedBy(other vocab.Type) bool {
|
||||
return typepropertyvalue.PropertyValueIsExtendedBy(other)
|
||||
}
|
||||
14
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_extends.go
generated
vendored
Normal file
14
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_extends.go
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package streams
|
||||
|
||||
import (
|
||||
typepropertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
|
||||
vocab "github.com/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// SchemaSchemaPropertyValueExtends returns true if PropertyValue extends from the
|
||||
// other's type.
|
||||
func SchemaSchemaPropertyValueExtends(other vocab.Type) bool {
|
||||
return typepropertyvalue.SchemaPropertyValueExtends(other)
|
||||
}
|
||||
14
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_isorextends.go
generated
vendored
Normal file
14
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_isorextends.go
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package streams
|
||||
|
||||
import (
|
||||
typepropertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
|
||||
vocab "github.com/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// IsOrExtendsSchemaPropertyValue returns true if the other provided type is the
|
||||
// PropertyValue type or extends from the PropertyValue type.
|
||||
func IsOrExtendsSchemaPropertyValue(other vocab.Type) bool {
|
||||
return typepropertyvalue.IsOrExtendsPropertyValue(other)
|
||||
}
|
||||
13
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_property_constructors.go
generated
vendored
Normal file
13
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_property_constructors.go
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package streams
|
||||
|
||||
import (
|
||||
propertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/property_value"
|
||||
vocab "github.com/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// NewSchemaSchemaValueProperty creates a new SchemaValueProperty
|
||||
func NewSchemaValueProperty() vocab.SchemaValueProperty {
|
||||
return propertyvalue.NewSchemaValueProperty()
|
||||
}
|
||||
13
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_type_constructors.go
generated
vendored
Normal file
13
vendor/github.com/superseriousbusiness/activity/streams/gen_pkg_schema_type_constructors.go
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package streams
|
||||
|
||||
import (
|
||||
typepropertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
|
||||
vocab "github.com/superseriousbusiness/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// NewSchemaPropertyValue creates a new SchemaPropertyValue
|
||||
func NewSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return typepropertyvalue.NewSchemaPropertyValue()
|
||||
}
|
||||
3
vendor/github.com/superseriousbusiness/activity/streams/gen_resolver_utils.go
generated
vendored
3
vendor/github.com/superseriousbusiness/activity/streams/gen_resolver_utils.go
generated
vendored
|
|
@ -181,6 +181,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro
|
|||
}, func(ctx context.Context, i vocab.ActivityStreamsProfile) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.SchemaPropertyValue) error {
|
||||
t = i
|
||||
return nil
|
||||
}, func(ctx context.Context, i vocab.W3IDSecurityV1PublicKey) error {
|
||||
t = i
|
||||
return nil
|
||||
|
|
|
|||
13
vendor/github.com/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go
generated
vendored
13
vendor/github.com/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go
generated
vendored
|
|
@ -119,6 +119,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP
|
|||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsProfile) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.SchemaPropertyValue) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ForgeFedPush) (bool, error):
|
||||
|
|
@ -671,6 +673,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "http://schema.org" && o.GetTypeName() == "PropertyValue" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.SchemaPropertyValue) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.SchemaPropertyValue); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return false, errCannotTypeAssertType
|
||||
}
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" {
|
||||
if fn, ok := this.predicate.(func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error)); ok {
|
||||
if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok {
|
||||
|
|
|
|||
11
vendor/github.com/superseriousbusiness/activity/streams/gen_type_resolver.go
generated
vendored
11
vendor/github.com/superseriousbusiness/activity/streams/gen_type_resolver.go
generated
vendored
|
|
@ -118,6 +118,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) {
|
|||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityStreamsProfile) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.SchemaPropertyValue) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.W3IDSecurityV1PublicKey) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ForgeFedPush) error:
|
||||
|
|
@ -576,6 +578,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "http://schema.org" && o.GetTypeName() == "PropertyValue" {
|
||||
if fn, ok := i.(func(context.Context, vocab.SchemaPropertyValue) error); ok {
|
||||
if v, ok := o.(vocab.SchemaPropertyValue); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
} else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" {
|
||||
if fn, ok := i.(func(context.Context, vocab.W3IDSecurityV1PublicKey) error); ok {
|
||||
if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsActorPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsActorPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsActorPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsActorPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsActorPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsActorPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsActorPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsActorPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsActorPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsActorPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsActorPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsActorPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsActorPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsActorPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3771,6 +3817,18 @@ func (this *ActivityStreamsActorProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "actor". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsActorProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "actor". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsActorProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4875,6 +4933,23 @@ func (this *ActivityStreamsActorProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "actor". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsActorProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsActorPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "actor". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5147,74 +5222,78 @@ func (this ActivityStreamsActorProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6112,6 +6191,20 @@ func (this *ActivityStreamsActorProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "actor". Invalidates all iterators.
|
||||
func (this *ActivityStreamsActorProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsActorPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "actor". Invalidates all iterators.
|
||||
func (this *ActivityStreamsActorProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6983,6 +7076,19 @@ func (this *ActivityStreamsActorProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "actor". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
func (this *ActivityStreamsActorProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "actor". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsActorProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsAnyOfPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsAnyOfPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsAnyOfPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsAnyOfPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsAnyOfPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsAnyOfPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsAnyOfPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsAnyOfPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsAnyOfPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsAnyOfPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsAnyOfPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3771,6 +3817,18 @@ func (this *ActivityStreamsAnyOfProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "anyOf". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsAnyOfProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "anyOf". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsAnyOfProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4875,6 +4933,23 @@ func (this *ActivityStreamsAnyOfProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "anyOf". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsAnyOfProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "anyOf". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5147,74 +5222,78 @@ func (this ActivityStreamsAnyOfProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6112,6 +6191,20 @@ func (this *ActivityStreamsAnyOfProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "anyOf". Invalidates all iterators.
|
||||
func (this *ActivityStreamsAnyOfProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "anyOf". Invalidates all iterators.
|
||||
func (this *ActivityStreamsAnyOfProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6983,6 +7076,19 @@ func (this *ActivityStreamsAnyOfProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "anyOf". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
func (this *ActivityStreamsAnyOfProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "anyOf". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsAnyOfProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsAttachmentPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsAttachmentPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsAttachmentPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsAttachmentPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsAttachmentPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsAttachmentPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsAttachmentPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsAttachmentPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsAttachmentPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsAttachmentPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsAttachmentPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{},
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3782,6 +3828,18 @@ func (this *ActivityStreamsAttachmentProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "attachment". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
func (this *ActivityStreamsAttachmentProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "attachment". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsAttachmentProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4888,6 +4946,23 @@ func (this *ActivityStreamsAttachmentProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "attachment". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsAttachmentProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "attachment". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5160,74 +5235,78 @@ func (this ActivityStreamsAttachmentProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6126,6 +6205,20 @@ func (this *ActivityStreamsAttachmentProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "attachment". Invalidates all iterators.
|
||||
func (this *ActivityStreamsAttachmentProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "attachment". Invalidates all iterators.
|
||||
func (this *ActivityStreamsAttachmentProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6998,6 +7091,19 @@ func (this *ActivityStreamsAttachmentProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "attachment". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsAttachmentProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "attachment". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsAttributedToPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsAttributedToPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsAttributedToPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsAttributedToPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsAttributedToPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsAttributedToPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsAttributedToPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsAttributedToPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsAttributedToPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsAttributedToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsAttributedToPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{}
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3821,6 +3867,18 @@ func (this *ActivityStreamsAttributedToProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "attributedTo". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
func (this *ActivityStreamsAttributedToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "attributedTo". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsAttributedToProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4928,6 +4986,23 @@ func (this *ActivityStreamsAttributedToProperty) InsertIRI(idx int, v *url.URL)
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "attributedTo". Existing elements at that index and higher
|
||||
// are shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsAttributedToProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "attributedTo". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5200,74 +5275,78 @@ func (this ActivityStreamsAttributedToProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6167,6 +6246,20 @@ func (this *ActivityStreamsAttributedToProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "attributedTo". Invalidates all iterators.
|
||||
func (this *ActivityStreamsAttributedToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "attributedTo". Invalidates all iterators.
|
||||
func (this *ActivityStreamsAttributedToProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -7039,6 +7132,19 @@ func (this *ActivityStreamsAttributedToProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "attributedTo". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsAttributedToProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "attributedTo". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsAudiencePropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsAudiencePropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsAudiencePropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsAudiencePropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsAudiencePropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsAudiencePropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsAudiencePropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsAudiencePropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsAudiencePropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsAudiencePropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsAudiencePropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsAudiencePropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3781,6 +3827,18 @@ func (this *ActivityStreamsAudienceProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "audience". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsAudienceProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "audience". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsAudienceProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4886,6 +4944,23 @@ func (this *ActivityStreamsAudienceProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "audience". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsAudienceProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "audience". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5158,74 +5233,78 @@ func (this ActivityStreamsAudienceProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6124,6 +6203,20 @@ func (this *ActivityStreamsAudienceProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "audience". Invalidates all iterators.
|
||||
func (this *ActivityStreamsAudienceProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "audience". Invalidates all iterators.
|
||||
func (this *ActivityStreamsAudienceProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6995,6 +7088,19 @@ func (this *ActivityStreamsAudienceProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "audience". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsAudienceProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "audience". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsAudienceProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsBccPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -372,6 +373,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsBccPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsBccPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -911,6 +918,13 @@ func (this ActivityStreamsBccPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsBccPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsBccPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1059,6 +1073,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1163,6 +1180,7 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1615,6 +1633,13 @@ func (this ActivityStreamsBccPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsBccPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsBccPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1722,6 +1747,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1906,60 +1933,63 @@ func (this ActivityStreamsBccPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2065,6 +2095,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2560,6 +2592,13 @@ func (this *ActivityStreamsBccPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsBccPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsBccPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2753,6 +2792,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2876,6 +2919,7 @@ func (this *ActivityStreamsBccPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2991,6 +3035,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error)
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3769,6 +3815,17 @@ func (this *ActivityStreamsBccProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "bcc". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsBccProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "bcc". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsBccProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4873,6 +4930,23 @@ func (this *ActivityStreamsBccProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "bcc". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsBccProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsBccPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "bcc". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5145,74 +5219,78 @@ func (this ActivityStreamsBccProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6110,6 +6188,20 @@ func (this *ActivityStreamsBccProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "bcc". Invalidates all iterators.
|
||||
func (this *ActivityStreamsBccProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsBccPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "bcc". Invalidates all iterators.
|
||||
func (this *ActivityStreamsBccProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6981,6 +7073,19 @@ func (this *ActivityStreamsBccProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "bcc". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
func (this *ActivityStreamsBccProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "bcc". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsBccProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsBtoPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -372,6 +373,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsBtoPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsBtoPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -911,6 +918,13 @@ func (this ActivityStreamsBtoPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsBtoPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsBtoPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1059,6 +1073,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1163,6 +1180,7 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1615,6 +1633,13 @@ func (this ActivityStreamsBtoPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsBtoPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsBtoPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1722,6 +1747,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1906,60 +1933,63 @@ func (this ActivityStreamsBtoPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2065,6 +2095,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2560,6 +2592,13 @@ func (this *ActivityStreamsBtoPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsBtoPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsBtoPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2753,6 +2792,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2876,6 +2919,7 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2991,6 +3035,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error)
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3769,6 +3815,17 @@ func (this *ActivityStreamsBtoProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "bto". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsBtoProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "bto". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsBtoProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4873,6 +4930,23 @@ func (this *ActivityStreamsBtoProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "bto". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsBtoProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "bto". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5145,74 +5219,78 @@ func (this ActivityStreamsBtoProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6110,6 +6188,20 @@ func (this *ActivityStreamsBtoProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "bto". Invalidates all iterators.
|
||||
func (this *ActivityStreamsBtoProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "bto". Invalidates all iterators.
|
||||
func (this *ActivityStreamsBtoProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6981,6 +7073,19 @@ func (this *ActivityStreamsBtoProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "bto". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
func (this *ActivityStreamsBtoProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "bto". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsBtoProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsCcPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -372,6 +373,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsCcPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsCcPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -911,6 +918,13 @@ func (this ActivityStreamsCcPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsCcPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsCcPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1059,6 +1073,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1163,6 +1180,7 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1615,6 +1633,13 @@ func (this ActivityStreamsCcPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsCcPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsCcPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1722,6 +1747,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1906,60 +1933,63 @@ func (this ActivityStreamsCcPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2065,6 +2095,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2560,6 +2592,13 @@ func (this *ActivityStreamsCcPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsCcPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsCcPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2753,6 +2792,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2876,6 +2919,7 @@ func (this *ActivityStreamsCcPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2991,6 +3035,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3769,6 +3815,17 @@ func (this *ActivityStreamsCcProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "cc". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsCcProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "cc". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsCcProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4873,6 +4930,23 @@ func (this *ActivityStreamsCcProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "cc". Existing elements at that index and higher are shifted
|
||||
// back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsCcProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsCcPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "cc". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5145,74 +5219,78 @@ func (this ActivityStreamsCcProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6110,6 +6188,20 @@ func (this *ActivityStreamsCcProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "cc". Invalidates all iterators.
|
||||
func (this *ActivityStreamsCcProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsCcPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "cc". Invalidates all iterators.
|
||||
func (this *ActivityStreamsCcProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6981,6 +7073,19 @@ func (this *ActivityStreamsCcProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "cc". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
func (this *ActivityStreamsCcProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "cc". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsCcProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ type ActivityStreamsClosedPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -380,6 +381,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsClosedPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsClosedPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -934,6 +941,13 @@ func (this ActivityStreamsClosedPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsClosedPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsClosedPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1082,6 +1096,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1201,6 +1218,7 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1653,6 +1671,13 @@ func (this ActivityStreamsClosedPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsClosedPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsClosedPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1774,6 +1799,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1964,60 +1991,63 @@ func (this ActivityStreamsClosedPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 45
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 49
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 51
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 53
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 54
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 55
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 56
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 62
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 63
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 64
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2127,6 +2157,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2622,6 +2654,13 @@ func (this *ActivityStreamsClosedPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsClosedPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsClosedPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2815,6 +2854,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2956,6 +2999,7 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -3075,6 +3119,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3854,6 +3900,18 @@ func (this *ActivityStreamsClosedProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "closed". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsClosedProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "closed". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsClosedProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4982,6 +5040,23 @@ func (this *ActivityStreamsClosedProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "closed". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsClosedProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "closed". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5298,74 +5373,78 @@ func (this ActivityStreamsClosedProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 62 {
|
||||
} else if idx1 == 63 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 63 {
|
||||
} else if idx1 == 64 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6264,6 +6343,20 @@ func (this *ActivityStreamsClosedProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "closed". Invalidates all iterators.
|
||||
func (this *ActivityStreamsClosedProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "closed". Invalidates all iterators.
|
||||
func (this *ActivityStreamsClosedProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -7165,6 +7258,19 @@ func (this *ActivityStreamsClosedProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "closed". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsClosedProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "closed". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsClosedProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsContextPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsContextPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsContextPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsContextPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsContextPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsContextPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsContextPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsContextPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsContextPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsContextPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsContextPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsContextPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsContextPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsContextPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3781,6 +3827,18 @@ func (this *ActivityStreamsContextProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "context". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsContextProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "context". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsContextProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4886,6 +4944,23 @@ func (this *ActivityStreamsContextProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "context". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsContextProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsContextPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "context". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5158,74 +5233,78 @@ func (this ActivityStreamsContextProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6124,6 +6203,20 @@ func (this *ActivityStreamsContextProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "context". Invalidates all iterators.
|
||||
func (this *ActivityStreamsContextProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsContextPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "context". Invalidates all iterators.
|
||||
func (this *ActivityStreamsContextProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6995,6 +7088,19 @@ func (this *ActivityStreamsContextProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "context". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsContextProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "context". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsContextProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -177,6 +177,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ type ActivityStreamsDescribesProperty struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -359,6 +360,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string]
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsDescribesProperty{
|
||||
alias: alias,
|
||||
|
|
@ -528,6 +535,7 @@ func (this *ActivityStreamsDescribesProperty) Clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -958,6 +966,13 @@ func (this ActivityStreamsDescribesProperty) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsDescribesProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsDescribesProperty) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1100,6 +1115,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1202,6 +1220,7 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1640,6 +1659,13 @@ func (this ActivityStreamsDescribesProperty) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsDescribesProperty) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsDescribesProperty) IsTootEmoji() bool {
|
||||
|
|
@ -1743,6 +1769,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1921,60 +1949,63 @@ func (this ActivityStreamsDescribesProperty) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 41
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 42
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 43
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 47
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 49
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 51
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 52
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 53
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 54
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 60
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2076,6 +2107,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2216,6 +2249,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2670,6 +2705,13 @@ func (this *ActivityStreamsDescribesProperty) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.Clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsDescribesProperty) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2855,6 +2897,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -177,6 +177,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ type ActivityStreamsFormerTypePropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -362,6 +363,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsFormerTypePropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsFormerTypePropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -895,6 +902,13 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsFormerTypePropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsFormerTypePropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1037,6 +1051,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1146,6 +1163,7 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1584,6 +1602,13 @@ func (this ActivityStreamsFormerTypePropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsFormerTypePropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsFormerTypePropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1694,6 +1719,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1875,60 +1902,63 @@ func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 42
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 43
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 48
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 49
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 52
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 54
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 61
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2032,6 +2062,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2513,6 +2545,13 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsFormerTypePropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsFormerTypePropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2698,6 +2737,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2828,6 +2871,7 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2941,6 +2985,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{},
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3708,6 +3754,18 @@ func (this *ActivityStreamsFormerTypeProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "formerType". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
func (this *ActivityStreamsFormerTypeProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "formerType". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsFormerTypeProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4792,6 +4850,23 @@ func (this *ActivityStreamsFormerTypeProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "formerType". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsFormerTypeProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "formerType". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5078,74 +5153,78 @@ func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 43 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6016,6 +6095,20 @@ func (this *ActivityStreamsFormerTypeProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "formerType". Invalidates all iterators.
|
||||
func (this *ActivityStreamsFormerTypeProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "formerType". Invalidates all iterators.
|
||||
func (this *ActivityStreamsFormerTypeProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6877,6 +6970,19 @@ func (this *ActivityStreamsFormerTypeProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "formerType". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsFormerTypeProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "formerType". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsGeneratorPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsGeneratorPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsGeneratorPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsGeneratorPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsGeneratorPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsGeneratorPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsGeneratorPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsGeneratorPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string]
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsGeneratorPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsGeneratorPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsGeneratorPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3781,6 +3827,18 @@ func (this *ActivityStreamsGeneratorProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "generator". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
func (this *ActivityStreamsGeneratorProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "generator". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsGeneratorProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4886,6 +4944,23 @@ func (this *ActivityStreamsGeneratorProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "generator". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsGeneratorProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "generator". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5158,74 +5233,78 @@ func (this ActivityStreamsGeneratorProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6124,6 +6203,20 @@ func (this *ActivityStreamsGeneratorProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "generator". Invalidates all iterators.
|
||||
func (this *ActivityStreamsGeneratorProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "generator". Invalidates all iterators.
|
||||
func (this *ActivityStreamsGeneratorProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6996,6 +7089,19 @@ func (this *ActivityStreamsGeneratorProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "generator". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsGeneratorProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "generator". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsInReplyToPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsInReplyToPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsInReplyToPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsInReplyToPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsInReplyToPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsInReplyToPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsInReplyToPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsInReplyToPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string]
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsInReplyToPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsInReplyToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsInReplyToPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3781,6 +3827,18 @@ func (this *ActivityStreamsInReplyToProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "inReplyTo". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
func (this *ActivityStreamsInReplyToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "inReplyTo". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsInReplyToProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4886,6 +4944,23 @@ func (this *ActivityStreamsInReplyToProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "inReplyTo". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsInReplyToProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "inReplyTo". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5158,74 +5233,78 @@ func (this ActivityStreamsInReplyToProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6124,6 +6203,20 @@ func (this *ActivityStreamsInReplyToProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "inReplyTo". Invalidates all iterators.
|
||||
func (this *ActivityStreamsInReplyToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "inReplyTo". Invalidates all iterators.
|
||||
func (this *ActivityStreamsInReplyToProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6996,6 +7089,19 @@ func (this *ActivityStreamsInReplyToProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "inReplyTo". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsInReplyToProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "inReplyTo". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsInstrumentPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsInstrumentPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsInstrumentPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsInstrumentPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsInstrumentPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsInstrumentPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsInstrumentPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsInstrumentPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsInstrumentPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsInstrumentPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsInstrumentPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{},
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3782,6 +3828,18 @@ func (this *ActivityStreamsInstrumentProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "instrument". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
func (this *ActivityStreamsInstrumentProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "instrument". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsInstrumentProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4888,6 +4946,23 @@ func (this *ActivityStreamsInstrumentProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "instrument". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsInstrumentProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "instrument". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5160,74 +5235,78 @@ func (this ActivityStreamsInstrumentProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6126,6 +6205,20 @@ func (this *ActivityStreamsInstrumentProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "instrument". Invalidates all iterators.
|
||||
func (this *ActivityStreamsInstrumentProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "instrument". Invalidates all iterators.
|
||||
func (this *ActivityStreamsInstrumentProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6998,6 +7091,19 @@ func (this *ActivityStreamsInstrumentProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "instrument". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsInstrumentProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "instrument". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsItemsPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsItemsPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsItemsPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsItemsPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsItemsPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsItemsPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsItemsPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsItemsPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsItemsPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsItemsPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsItemsPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsItemsPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3771,6 +3817,18 @@ func (this *ActivityStreamsItemsProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "items". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsItemsProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "items". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsItemsProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4875,6 +4933,23 @@ func (this *ActivityStreamsItemsProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "items". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsItemsProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "items". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5147,74 +5222,78 @@ func (this ActivityStreamsItemsProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6112,6 +6191,20 @@ func (this *ActivityStreamsItemsProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "items". Invalidates all iterators.
|
||||
func (this *ActivityStreamsItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "items". Invalidates all iterators.
|
||||
func (this *ActivityStreamsItemsProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6983,6 +7076,19 @@ func (this *ActivityStreamsItemsProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "items". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
func (this *ActivityStreamsItemsProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "items". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsItemsProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsLocationPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsLocationPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsLocationPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsLocationPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsLocationPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsLocationPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsLocationPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsLocationPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsLocationPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsLocationPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsLocationPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsLocationPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsLocationPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3781,6 +3827,18 @@ func (this *ActivityStreamsLocationProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "location". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsLocationProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "location". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsLocationProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4886,6 +4944,23 @@ func (this *ActivityStreamsLocationProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "location". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsLocationProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "location". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5158,74 +5233,78 @@ func (this ActivityStreamsLocationProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6124,6 +6203,20 @@ func (this *ActivityStreamsLocationProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "location". Invalidates all iterators.
|
||||
func (this *ActivityStreamsLocationProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "location". Invalidates all iterators.
|
||||
func (this *ActivityStreamsLocationProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6995,6 +7088,19 @@ func (this *ActivityStreamsLocationProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "location". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsLocationProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "location". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsLocationProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsObjectPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsObjectPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsObjectPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsObjectPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsObjectPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsObjectPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsObjectPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsObjectPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsObjectPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsObjectPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsObjectPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsObjectPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsObjectPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3771,6 +3817,18 @@ func (this *ActivityStreamsObjectProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "object". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsObjectProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "object". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsObjectProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4875,6 +4933,23 @@ func (this *ActivityStreamsObjectProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "object". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsObjectProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "object". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5147,74 +5222,78 @@ func (this ActivityStreamsObjectProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6113,6 +6192,20 @@ func (this *ActivityStreamsObjectProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "object". Invalidates all iterators.
|
||||
func (this *ActivityStreamsObjectProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "object". Invalidates all iterators.
|
||||
func (this *ActivityStreamsObjectProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6984,6 +7077,19 @@ func (this *ActivityStreamsObjectProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "object". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsObjectProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "object". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsObjectProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsOneOfPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsOneOfPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsOneOfPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsOneOfPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsOneOfPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsOneOfPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsOneOfPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsOneOfPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsOneOfPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsOneOfPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsOneOfPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsOneOfPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3771,6 +3817,18 @@ func (this *ActivityStreamsOneOfProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "oneOf". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsOneOfProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "oneOf". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsOneOfProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4875,6 +4933,23 @@ func (this *ActivityStreamsOneOfProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "oneOf". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsOneOfProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "oneOf". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5147,74 +5222,78 @@ func (this ActivityStreamsOneOfProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6112,6 +6191,20 @@ func (this *ActivityStreamsOneOfProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "oneOf". Invalidates all iterators.
|
||||
func (this *ActivityStreamsOneOfProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "oneOf". Invalidates all iterators.
|
||||
func (this *ActivityStreamsOneOfProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6983,6 +7076,19 @@ func (this *ActivityStreamsOneOfProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "oneOf". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
func (this *ActivityStreamsOneOfProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "oneOf". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsOneOfProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsOrderedItemsPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsOrderedItemsPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsOrderedItemsPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsOrderedItemsPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsOrderedItemsPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsOrderedItemsPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsOrderedItemsPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsOrderedItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsOrderedItemsPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{}
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3821,6 +3867,18 @@ func (this *ActivityStreamsOrderedItemsProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "orderedItems". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
func (this *ActivityStreamsOrderedItemsProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "orderedItems". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsOrderedItemsProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4928,6 +4986,23 @@ func (this *ActivityStreamsOrderedItemsProperty) InsertIRI(idx int, v *url.URL)
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "orderedItems". Existing elements at that index and higher
|
||||
// are shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsOrderedItemsProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "orderedItems". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5200,74 +5275,78 @@ func (this ActivityStreamsOrderedItemsProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6167,6 +6246,20 @@ func (this *ActivityStreamsOrderedItemsProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "orderedItems". Invalidates all iterators.
|
||||
func (this *ActivityStreamsOrderedItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "orderedItems". Invalidates all iterators.
|
||||
func (this *ActivityStreamsOrderedItemsProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -7039,6 +7132,19 @@ func (this *ActivityStreamsOrderedItemsProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "orderedItems". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsOrderedItemsProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "orderedItems". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsOriginPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsOriginPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsOriginPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsOriginPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsOriginPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsOriginPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsOriginPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsOriginPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsOriginPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsOriginPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsOriginPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsOriginPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsOriginPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3771,6 +3817,18 @@ func (this *ActivityStreamsOriginProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "origin". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsOriginProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "origin". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsOriginProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4875,6 +4933,23 @@ func (this *ActivityStreamsOriginProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "origin". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsOriginProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "origin". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5147,74 +5222,78 @@ func (this ActivityStreamsOriginProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6113,6 +6192,20 @@ func (this *ActivityStreamsOriginProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "origin". Invalidates all iterators.
|
||||
func (this *ActivityStreamsOriginProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "origin". Invalidates all iterators.
|
||||
func (this *ActivityStreamsOriginProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6984,6 +7077,19 @@ func (this *ActivityStreamsOriginProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "origin". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsOriginProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "origin". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsOriginProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsPreviewPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsPreviewPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsPreviewPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsPreviewPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsPreviewPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsPreviewPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsPreviewPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsPreviewPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsPreviewPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsPreviewPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsPreviewPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsPreviewPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3781,6 +3827,18 @@ func (this *ActivityStreamsPreviewProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "preview". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsPreviewProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "preview". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsPreviewProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4886,6 +4944,23 @@ func (this *ActivityStreamsPreviewProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "preview". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsPreviewProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "preview". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5158,74 +5233,78 @@ func (this ActivityStreamsPreviewProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6124,6 +6203,20 @@ func (this *ActivityStreamsPreviewProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "preview". Invalidates all iterators.
|
||||
func (this *ActivityStreamsPreviewProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "preview". Invalidates all iterators.
|
||||
func (this *ActivityStreamsPreviewProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6995,6 +7088,19 @@ func (this *ActivityStreamsPreviewProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "preview". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsPreviewProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "preview". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsPreviewProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -177,6 +177,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ type ActivityStreamsRelationshipPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -359,6 +360,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsRelationshipPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsRelationshipPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -884,6 +891,13 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsRelationshipPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsRelationshipPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1026,6 +1040,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1128,6 +1145,7 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1566,6 +1584,13 @@ func (this ActivityStreamsRelationshipPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsRelationshipPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsRelationshipPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1669,6 +1694,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1847,60 +1874,63 @@ func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 41
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 42
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 43
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 47
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 49
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 51
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 52
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 53
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 54
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 60
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2002,6 +2032,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2483,6 +2515,13 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsRelationshipPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsRelationshipPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2668,6 +2707,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2789,6 +2832,7 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2900,6 +2944,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{}
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3705,6 +3751,18 @@ func (this *ActivityStreamsRelationshipProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "relationship". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
func (this *ActivityStreamsRelationshipProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "relationship". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsRelationshipProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4778,6 +4836,23 @@ func (this *ActivityStreamsRelationshipProperty) InsertIRI(idx int, v *url.URL)
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "relationship". Existing elements at that index and higher
|
||||
// are shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsRelationshipProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "relationship". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5042,74 +5117,78 @@ func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 42 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 43 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 43 {
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -5981,6 +6060,20 @@ func (this *ActivityStreamsRelationshipProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "relationship". Invalidates all iterators.
|
||||
func (this *ActivityStreamsRelationshipProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "relationship". Invalidates all iterators.
|
||||
func (this *ActivityStreamsRelationshipProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6827,6 +6920,19 @@ func (this *ActivityStreamsRelationshipProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "relationship". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsRelationshipProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "relationship". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsResultPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsResultPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsResultPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsResultPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsResultPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsResultPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsResultPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsResultPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsResultPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsResultPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsResultPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsResultPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsResultPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsResultPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3771,6 +3817,18 @@ func (this *ActivityStreamsResultProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "result". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsResultProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "result". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsResultProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4875,6 +4933,23 @@ func (this *ActivityStreamsResultProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "result". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsResultProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsResultPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "result". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5147,74 +5222,78 @@ func (this ActivityStreamsResultProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6113,6 +6192,20 @@ func (this *ActivityStreamsResultProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "result". Invalidates all iterators.
|
||||
func (this *ActivityStreamsResultProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsResultPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "result". Invalidates all iterators.
|
||||
func (this *ActivityStreamsResultProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6984,6 +7077,19 @@ func (this *ActivityStreamsResultProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "result". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsResultProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "result". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsResultProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsSourceProperty struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSourceProperty{
|
||||
alias: alias,
|
||||
|
|
@ -544,6 +551,7 @@ func (this *ActivityStreamsSourceProperty) Clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -988,6 +996,13 @@ func (this ActivityStreamsSourceProperty) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsSourceProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsSourceProperty) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1136,6 +1151,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1240,6 +1258,7 @@ func (this ActivityStreamsSourceProperty) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1692,6 +1711,13 @@ func (this ActivityStreamsSourceProperty) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsSourceProperty) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsSourceProperty) IsTootEmoji() bool {
|
||||
|
|
@ -1799,6 +1825,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1983,60 +2011,63 @@ func (this ActivityStreamsSourceProperty) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2142,6 +2173,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2286,6 +2319,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2754,6 +2789,13 @@ func (this *ActivityStreamsSourceProperty) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.Clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsSourceProperty) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2947,6 +2989,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsSubjectProperty struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSubjectProperty{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsSubjectProperty{
|
||||
alias: alias,
|
||||
|
|
@ -544,6 +551,7 @@ func (this *ActivityStreamsSubjectProperty) Clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -988,6 +996,13 @@ func (this ActivityStreamsSubjectProperty) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsSubjectProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsSubjectProperty) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1136,6 +1151,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1240,6 +1258,7 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1692,6 +1711,13 @@ func (this ActivityStreamsSubjectProperty) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsSubjectProperty) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsSubjectProperty) IsTootEmoji() bool {
|
||||
|
|
@ -1799,6 +1825,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1983,60 +2011,63 @@ func (this ActivityStreamsSubjectProperty) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2142,6 +2173,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2286,6 +2319,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2754,6 +2789,13 @@ func (this *ActivityStreamsSubjectProperty) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsSubjectProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.Clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsSubjectProperty) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2947,6 +2989,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsTagPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -372,6 +373,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsTagPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsTagPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -911,6 +918,13 @@ func (this ActivityStreamsTagPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsTagPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsTagPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1059,6 +1073,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1163,6 +1180,7 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1615,6 +1633,13 @@ func (this ActivityStreamsTagPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsTagPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsTagPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1722,6 +1747,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1906,60 +1933,63 @@ func (this ActivityStreamsTagPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2065,6 +2095,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2560,6 +2592,13 @@ func (this *ActivityStreamsTagPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsTagPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsTagPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2753,6 +2792,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2876,6 +2919,7 @@ func (this *ActivityStreamsTagPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2991,6 +3035,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error)
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3769,6 +3815,17 @@ func (this *ActivityStreamsTagProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "tag". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsTagProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "tag". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsTagProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4873,6 +4930,23 @@ func (this *ActivityStreamsTagProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "tag". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsTagProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsTagPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "tag". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5145,74 +5219,78 @@ func (this ActivityStreamsTagProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6110,6 +6188,20 @@ func (this *ActivityStreamsTagProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "tag". Invalidates all iterators.
|
||||
func (this *ActivityStreamsTagProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsTagPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "tag". Invalidates all iterators.
|
||||
func (this *ActivityStreamsTagProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6981,6 +7073,19 @@ func (this *ActivityStreamsTagProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "tag". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
func (this *ActivityStreamsTagProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "tag". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsTagProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsTargetPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -373,6 +374,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsTargetPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsTargetPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -912,6 +919,13 @@ func (this ActivityStreamsTargetPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsTargetPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsTargetPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1060,6 +1074,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1164,6 +1181,7 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1616,6 +1634,13 @@ func (this ActivityStreamsTargetPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsTargetPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsTargetPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1723,6 +1748,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1907,60 +1934,63 @@ func (this ActivityStreamsTargetPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2066,6 +2096,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2561,6 +2593,13 @@ func (this *ActivityStreamsTargetPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsTargetPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsTargetPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2754,6 +2793,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2877,6 +2920,7 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2992,6 +3036,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3771,6 +3817,18 @@ func (this *ActivityStreamsTargetProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "target". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
func (this *ActivityStreamsTargetProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "target". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsTargetProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4875,6 +4933,23 @@ func (this *ActivityStreamsTargetProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "target". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsTargetProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "target". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5147,74 +5222,78 @@ func (this ActivityStreamsTargetProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6113,6 +6192,20 @@ func (this *ActivityStreamsTargetProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "target". Invalidates all iterators.
|
||||
func (this *ActivityStreamsTargetProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "target". Invalidates all iterators.
|
||||
func (this *ActivityStreamsTargetProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6984,6 +7077,19 @@ func (this *ActivityStreamsTargetProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "target". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsTargetProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "target". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsTargetProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ActivityStreamsToPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -372,6 +373,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsToPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ActivityStreamsToPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -911,6 +918,13 @@ func (this ActivityStreamsToPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ActivityStreamsToPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ActivityStreamsToPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1059,6 +1073,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1163,6 +1180,7 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1615,6 +1633,13 @@ func (this ActivityStreamsToPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ActivityStreamsToPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ActivityStreamsToPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1722,6 +1747,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1906,60 +1933,63 @@ func (this ActivityStreamsToPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2065,6 +2095,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2560,6 +2592,13 @@ func (this *ActivityStreamsToPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ActivityStreamsToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ActivityStreamsToPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2753,6 +2792,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2876,6 +2919,7 @@ func (this *ActivityStreamsToPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2991,6 +3035,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3769,6 +3815,17 @@ func (this *ActivityStreamsToProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "to". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "to". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsToProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4873,6 +4930,23 @@ func (this *ActivityStreamsToProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "to". Existing elements at that index and higher are shifted
|
||||
// back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsToProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsToPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "to". Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
|
|
@ -5145,74 +5219,78 @@ func (this ActivityStreamsToProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6110,6 +6188,20 @@ func (this *ActivityStreamsToProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "to". Invalidates all iterators.
|
||||
func (this *ActivityStreamsToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ActivityStreamsToPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "to". Invalidates all iterators.
|
||||
func (this *ActivityStreamsToProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6981,6 +7073,19 @@ func (this *ActivityStreamsToProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "to". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
func (this *ActivityStreamsToProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsToPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "to". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ActivityStreamsToProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ func IsOrExtendsLink(other vocab.Type) bool {
|
|||
// LinkIsDisjointWith returns true if the other provided type is disjoint with the
|
||||
// Link type.
|
||||
func LinkIsDisjointWith(other vocab.Type) bool {
|
||||
disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
|
||||
disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
|
||||
for _, disjoint := range disjointWith {
|
||||
if disjoint == other.GetTypeName() {
|
||||
return true
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ func IsOrExtendsMention(other vocab.Type) bool {
|
|||
// MentionIsDisjointWith returns true if the other provided type is disjoint with
|
||||
// the Mention type.
|
||||
func MentionIsDisjointWith(other vocab.Type) bool {
|
||||
disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
|
||||
disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
|
||||
for _, disjoint := range disjointWith {
|
||||
if disjoint == other.GetTypeName() {
|
||||
return true
|
||||
|
|
|
|||
|
|
@ -420,7 +420,7 @@ func ObjectIsDisjointWith(other vocab.Type) bool {
|
|||
// Object type. Note that it returns false if the types are the same; see the
|
||||
// "IsOrExtendsObject" variant instead.
|
||||
func ObjectIsExtendedBy(other vocab.Type) bool {
|
||||
extensions := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
|
||||
extensions := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
|
||||
for _, ext := range extensions {
|
||||
if ext == other.GetTypeName() {
|
||||
return true
|
||||
|
|
|
|||
|
|
@ -177,6 +177,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ type ForgeFedCommittedByProperty struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -360,6 +361,12 @@ func DeserializeCommittedByProperty(m map[string]interface{}, aliasMap map[strin
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ForgeFedCommittedByProperty{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ForgeFedCommittedByProperty{
|
||||
alias: alias,
|
||||
|
|
@ -529,6 +536,7 @@ func (this *ForgeFedCommittedByProperty) Clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -959,6 +967,13 @@ func (this ForgeFedCommittedByProperty) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ForgeFedCommittedByProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ForgeFedCommittedByProperty) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1101,6 +1116,9 @@ func (this ForgeFedCommittedByProperty) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1203,6 +1221,7 @@ func (this ForgeFedCommittedByProperty) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1641,6 +1660,13 @@ func (this ForgeFedCommittedByProperty) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ForgeFedCommittedByProperty) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ForgeFedCommittedByProperty) IsTootEmoji() bool {
|
||||
|
|
@ -1744,6 +1770,8 @@ func (this ForgeFedCommittedByProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1922,60 +1950,63 @@ func (this ForgeFedCommittedByProperty) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 41
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 42
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 43
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 47
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 49
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 51
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 52
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 53
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 54
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 60
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2077,6 +2108,8 @@ func (this ForgeFedCommittedByProperty) LessThan(o vocab.ForgeFedCommittedByProp
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2217,6 +2250,8 @@ func (this ForgeFedCommittedByProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2671,6 +2706,13 @@ func (this *ForgeFedCommittedByProperty) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ForgeFedCommittedByProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.Clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ForgeFedCommittedByProperty) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2856,6 +2898,10 @@ func (this *ForgeFedCommittedByProperty) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -177,6 +177,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ type ForgeFedDescriptionProperty struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -360,6 +361,12 @@ func DeserializeDescriptionProperty(m map[string]interface{}, aliasMap map[strin
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ForgeFedDescriptionProperty{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ForgeFedDescriptionProperty{
|
||||
alias: alias,
|
||||
|
|
@ -529,6 +536,7 @@ func (this *ForgeFedDescriptionProperty) Clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -959,6 +967,13 @@ func (this ForgeFedDescriptionProperty) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ForgeFedDescriptionProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ForgeFedDescriptionProperty) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1101,6 +1116,9 @@ func (this ForgeFedDescriptionProperty) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1203,6 +1221,7 @@ func (this ForgeFedDescriptionProperty) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1641,6 +1660,13 @@ func (this ForgeFedDescriptionProperty) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ForgeFedDescriptionProperty) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ForgeFedDescriptionProperty) IsTootEmoji() bool {
|
||||
|
|
@ -1744,6 +1770,8 @@ func (this ForgeFedDescriptionProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1922,60 +1950,63 @@ func (this ForgeFedDescriptionProperty) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 41
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 42
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 43
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 47
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 49
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 51
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 52
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 53
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 54
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 60
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2077,6 +2108,8 @@ func (this ForgeFedDescriptionProperty) LessThan(o vocab.ForgeFedDescriptionProp
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2217,6 +2250,8 @@ func (this ForgeFedDescriptionProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2671,6 +2706,13 @@ func (this *ForgeFedDescriptionProperty) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ForgeFedDescriptionProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.Clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ForgeFedDescriptionProperty) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2856,6 +2898,10 @@ func (this *ForgeFedDescriptionProperty) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type ForgeFedEarlyItemsPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -372,6 +373,12 @@ func deserializeForgeFedEarlyItemsPropertyIterator(i interface{}, aliasMap map[s
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ForgeFedEarlyItemsPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ForgeFedEarlyItemsPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -911,6 +918,13 @@ func (this ForgeFedEarlyItemsPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ForgeFedEarlyItemsPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ForgeFedEarlyItemsPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1059,6 +1073,9 @@ func (this ForgeFedEarlyItemsPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1163,6 +1180,7 @@ func (this ForgeFedEarlyItemsPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1615,6 +1633,13 @@ func (this ForgeFedEarlyItemsPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ForgeFedEarlyItemsPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ForgeFedEarlyItemsPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1722,6 +1747,8 @@ func (this ForgeFedEarlyItemsPropertyIterator) JSONLDContext() map[string]string
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1906,60 +1933,63 @@ func (this ForgeFedEarlyItemsPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 43
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 47
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 49
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 51
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 52
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 53
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 54
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 60
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 61
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 62
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2065,6 +2095,8 @@ func (this ForgeFedEarlyItemsPropertyIterator) LessThan(o vocab.ForgeFedEarlyIte
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2560,6 +2592,13 @@ func (this *ForgeFedEarlyItemsPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ForgeFedEarlyItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ForgeFedEarlyItemsPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2753,6 +2792,10 @@ func (this *ForgeFedEarlyItemsPropertyIterator) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2876,6 +2919,7 @@ func (this *ForgeFedEarlyItemsPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2991,6 +3035,8 @@ func (this ForgeFedEarlyItemsPropertyIterator) serialize() (interface{}, error)
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3781,6 +3827,18 @@ func (this *ForgeFedEarlyItemsProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "earlyItems". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
func (this *ForgeFedEarlyItemsProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "earlyItems". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ForgeFedEarlyItemsProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4887,6 +4945,23 @@ func (this *ForgeFedEarlyItemsProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "earlyItems". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ForgeFedEarlyItemsProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "earlyItems". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
|
|
@ -5159,74 +5234,78 @@ func (this ForgeFedEarlyItemsProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 60 {
|
||||
} else if idx1 == 61 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 61 {
|
||||
} else if idx1 == 62 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -6125,6 +6204,20 @@ func (this *ForgeFedEarlyItemsProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "earlyItems". Invalidates all iterators.
|
||||
func (this *ForgeFedEarlyItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "earlyItems". Invalidates all iterators.
|
||||
func (this *ForgeFedEarlyItemsProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6997,6 +7090,19 @@ func (this *ForgeFedEarlyItemsProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "earlyItems". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ForgeFedEarlyItemsProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "earlyItems". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
|
|
|
|||
|
|
@ -177,6 +177,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ type ForgeFedTicketsTrackedByProperty struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -360,6 +361,12 @@ func DeserializeTicketsTrackedByProperty(m map[string]interface{}, aliasMap map[
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ForgeFedTicketsTrackedByProperty{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ForgeFedTicketsTrackedByProperty{
|
||||
alias: alias,
|
||||
|
|
@ -529,6 +536,7 @@ func (this *ForgeFedTicketsTrackedByProperty) Clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -959,6 +967,13 @@ func (this ForgeFedTicketsTrackedByProperty) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ForgeFedTicketsTrackedByProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ForgeFedTicketsTrackedByProperty) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1101,6 +1116,9 @@ func (this ForgeFedTicketsTrackedByProperty) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1203,6 +1221,7 @@ func (this ForgeFedTicketsTrackedByProperty) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1641,6 +1660,13 @@ func (this ForgeFedTicketsTrackedByProperty) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ForgeFedTicketsTrackedByProperty) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ForgeFedTicketsTrackedByProperty) IsTootEmoji() bool {
|
||||
|
|
@ -1744,6 +1770,8 @@ func (this ForgeFedTicketsTrackedByProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1922,60 +1950,63 @@ func (this ForgeFedTicketsTrackedByProperty) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 41
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 42
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 43
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 47
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 49
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 51
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 52
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 53
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 54
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 60
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2077,6 +2108,8 @@ func (this ForgeFedTicketsTrackedByProperty) LessThan(o vocab.ForgeFedTicketsTra
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2217,6 +2250,8 @@ func (this ForgeFedTicketsTrackedByProperty) Serialize() (interface{}, error) {
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2671,6 +2706,13 @@ func (this *ForgeFedTicketsTrackedByProperty) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ForgeFedTicketsTrackedByProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.Clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ForgeFedTicketsTrackedByProperty) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2856,6 +2898,10 @@ func (this *ForgeFedTicketsTrackedByProperty) SetType(t vocab.Type) error {
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -177,6 +177,10 @@ type privateManager interface {
|
|||
// for the "ActivityStreamsProfile" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
|
||||
// DeserializePropertyValueSchema returns the deserialization method for
|
||||
// the "SchemaPropertyValue" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
|
||||
// DeserializePushForgeFed returns the deserialization method for the
|
||||
// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
|
||||
DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ type ForgeFedTracksTicketsForPropertyIterator struct {
|
|||
activitystreamsPersonMember vocab.ActivityStreamsPerson
|
||||
activitystreamsPlaceMember vocab.ActivityStreamsPlace
|
||||
activitystreamsProfileMember vocab.ActivityStreamsProfile
|
||||
schemaPropertyValueMember vocab.SchemaPropertyValue
|
||||
forgefedPushMember vocab.ForgeFedPush
|
||||
activitystreamsQuestionMember vocab.ActivityStreamsQuestion
|
||||
activitystreamsReadMember vocab.ActivityStreamsRead
|
||||
|
|
@ -359,6 +360,12 @@ func deserializeForgeFedTracksTicketsForPropertyIterator(i interface{}, aliasMap
|
|||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap); err == nil {
|
||||
this := &ForgeFedTracksTicketsForPropertyIterator{
|
||||
alias: alias,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
|
||||
this := &ForgeFedTracksTicketsForPropertyIterator{
|
||||
alias: alias,
|
||||
|
|
@ -884,6 +891,13 @@ func (this ForgeFedTracksTicketsForPropertyIterator) GetIRI() *url.URL {
|
|||
return this.iri
|
||||
}
|
||||
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
|
||||
// arbitrary value.
|
||||
func (this ForgeFedTracksTicketsForPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue {
|
||||
return this.schemaPropertyValueMember
|
||||
}
|
||||
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji returns
|
||||
// false, GetTootEmoji will return an arbitrary value.
|
||||
func (this ForgeFedTracksTicketsForPropertyIterator) GetTootEmoji() vocab.TootEmoji {
|
||||
|
|
@ -1026,6 +1040,9 @@ func (this ForgeFedTracksTicketsForPropertyIterator) GetType() vocab.Type {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile()
|
||||
}
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue()
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush()
|
||||
}
|
||||
|
|
@ -1128,6 +1145,7 @@ func (this ForgeFedTracksTicketsForPropertyIterator) HasAny() bool {
|
|||
this.IsActivityStreamsPerson() ||
|
||||
this.IsActivityStreamsPlace() ||
|
||||
this.IsActivityStreamsProfile() ||
|
||||
this.IsSchemaPropertyValue() ||
|
||||
this.IsForgeFedPush() ||
|
||||
this.IsActivityStreamsQuestion() ||
|
||||
this.IsActivityStreamsRead() ||
|
||||
|
|
@ -1566,6 +1584,13 @@ func (this ForgeFedTracksTicketsForPropertyIterator) IsIRI() bool {
|
|||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
func (this ForgeFedTracksTicketsForPropertyIterator) IsSchemaPropertyValue() bool {
|
||||
return this.schemaPropertyValueMember != nil
|
||||
}
|
||||
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
|
||||
// the GetTootEmoji and SetTootEmoji methods to access and set this property.
|
||||
func (this ForgeFedTracksTicketsForPropertyIterator) IsTootEmoji() bool {
|
||||
|
|
@ -1669,6 +1694,8 @@ func (this ForgeFedTracksTicketsForPropertyIterator) JSONLDContext() map[string]
|
|||
child = this.GetActivityStreamsPlace().JSONLDContext()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
child = this.GetActivityStreamsProfile().JSONLDContext()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
child = this.GetSchemaPropertyValue().JSONLDContext()
|
||||
} else if this.IsForgeFedPush() {
|
||||
child = this.GetForgeFedPush().JSONLDContext()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -1847,60 +1874,63 @@ func (this ForgeFedTracksTicketsForPropertyIterator) KindIndex() int {
|
|||
if this.IsActivityStreamsProfile() {
|
||||
return 41
|
||||
}
|
||||
if this.IsForgeFedPush() {
|
||||
if this.IsSchemaPropertyValue() {
|
||||
return 42
|
||||
}
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
if this.IsForgeFedPush() {
|
||||
return 43
|
||||
}
|
||||
if this.IsActivityStreamsRead() {
|
||||
if this.IsActivityStreamsQuestion() {
|
||||
return 44
|
||||
}
|
||||
if this.IsActivityStreamsReject() {
|
||||
if this.IsActivityStreamsRead() {
|
||||
return 45
|
||||
}
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
if this.IsActivityStreamsReject() {
|
||||
return 46
|
||||
}
|
||||
if this.IsActivityStreamsRemove() {
|
||||
if this.IsActivityStreamsRelationship() {
|
||||
return 47
|
||||
}
|
||||
if this.IsForgeFedRepository() {
|
||||
if this.IsActivityStreamsRemove() {
|
||||
return 48
|
||||
}
|
||||
if this.IsActivityStreamsService() {
|
||||
if this.IsForgeFedRepository() {
|
||||
return 49
|
||||
}
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
if this.IsActivityStreamsService() {
|
||||
return 50
|
||||
}
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
if this.IsActivityStreamsTentativeAccept() {
|
||||
return 51
|
||||
}
|
||||
if this.IsForgeFedTicket() {
|
||||
if this.IsActivityStreamsTentativeReject() {
|
||||
return 52
|
||||
}
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
if this.IsForgeFedTicket() {
|
||||
return 53
|
||||
}
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
if this.IsForgeFedTicketDependency() {
|
||||
return 54
|
||||
}
|
||||
if this.IsActivityStreamsTravel() {
|
||||
if this.IsActivityStreamsTombstone() {
|
||||
return 55
|
||||
}
|
||||
if this.IsActivityStreamsUndo() {
|
||||
if this.IsActivityStreamsTravel() {
|
||||
return 56
|
||||
}
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
if this.IsActivityStreamsUndo() {
|
||||
return 57
|
||||
}
|
||||
if this.IsActivityStreamsVideo() {
|
||||
if this.IsActivityStreamsUpdate() {
|
||||
return 58
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
if this.IsActivityStreamsVideo() {
|
||||
return 59
|
||||
}
|
||||
if this.IsActivityStreamsView() {
|
||||
return 60
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
|
@ -2002,6 +2032,8 @@ func (this ForgeFedTracksTicketsForPropertyIterator) LessThan(o vocab.ForgeFedTr
|
|||
return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue())
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -2483,6 +2515,13 @@ func (this *ForgeFedTracksTicketsForPropertyIterator) SetIRI(v *url.URL) {
|
|||
this.iri = v
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
func (this *ForgeFedTracksTicketsForPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.clear()
|
||||
this.schemaPropertyValueMember = v
|
||||
}
|
||||
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
|
||||
// returns true.
|
||||
func (this *ForgeFedTracksTicketsForPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -2668,6 +2707,10 @@ func (this *ForgeFedTracksTicketsForPropertyIterator) SetType(t vocab.Type) erro
|
|||
this.SetActivityStreamsProfile(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.SchemaPropertyValue); ok {
|
||||
this.SetSchemaPropertyValue(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ForgeFedPush); ok {
|
||||
this.SetForgeFedPush(v)
|
||||
return nil
|
||||
|
|
@ -2789,6 +2832,7 @@ func (this *ForgeFedTracksTicketsForPropertyIterator) clear() {
|
|||
this.activitystreamsPersonMember = nil
|
||||
this.activitystreamsPlaceMember = nil
|
||||
this.activitystreamsProfileMember = nil
|
||||
this.schemaPropertyValueMember = nil
|
||||
this.forgefedPushMember = nil
|
||||
this.activitystreamsQuestionMember = nil
|
||||
this.activitystreamsReadMember = nil
|
||||
|
|
@ -2900,6 +2944,8 @@ func (this ForgeFedTracksTicketsForPropertyIterator) serialize() (interface{}, e
|
|||
return this.GetActivityStreamsPlace().Serialize()
|
||||
} else if this.IsActivityStreamsProfile() {
|
||||
return this.GetActivityStreamsProfile().Serialize()
|
||||
} else if this.IsSchemaPropertyValue() {
|
||||
return this.GetSchemaPropertyValue().Serialize()
|
||||
} else if this.IsForgeFedPush() {
|
||||
return this.GetForgeFedPush().Serialize()
|
||||
} else if this.IsActivityStreamsQuestion() {
|
||||
|
|
@ -3705,6 +3751,18 @@ func (this *ForgeFedTracksTicketsForProperty) AppendIRI(v *url.URL) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
|
||||
// of the property "tracksTicketsFor". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
func (this *ForgeFedTracksTicketsForProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the property
|
||||
// "tracksTicketsFor". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ForgeFedTracksTicketsForProperty) AppendTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -4778,6 +4836,23 @@ func (this *ForgeFedTracksTicketsForProperty) InsertIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
|
||||
// for a property "tracksTicketsFor". Existing elements at that index and
|
||||
// higher are shifted back once. Invalidates all iterators.
|
||||
func (this *ForgeFedTracksTicketsForProperty) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a property
|
||||
// "tracksTicketsFor". Existing elements at that index and higher are shifted
|
||||
// back once. Invalidates all iterators.
|
||||
|
|
@ -5042,74 +5117,78 @@ func (this ForgeFedTracksTicketsForProperty) Less(i, j int) bool {
|
|||
rhs := this.properties[j].GetActivityStreamsProfile()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 42 {
|
||||
lhs := this.properties[i].GetSchemaPropertyValue()
|
||||
rhs := this.properties[j].GetSchemaPropertyValue()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 43 {
|
||||
lhs := this.properties[i].GetForgeFedPush()
|
||||
rhs := this.properties[j].GetForgeFedPush()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 43 {
|
||||
} else if idx1 == 44 {
|
||||
lhs := this.properties[i].GetActivityStreamsQuestion()
|
||||
rhs := this.properties[j].GetActivityStreamsQuestion()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 44 {
|
||||
} else if idx1 == 45 {
|
||||
lhs := this.properties[i].GetActivityStreamsRead()
|
||||
rhs := this.properties[j].GetActivityStreamsRead()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 45 {
|
||||
} else if idx1 == 46 {
|
||||
lhs := this.properties[i].GetActivityStreamsReject()
|
||||
rhs := this.properties[j].GetActivityStreamsReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 46 {
|
||||
} else if idx1 == 47 {
|
||||
lhs := this.properties[i].GetActivityStreamsRelationship()
|
||||
rhs := this.properties[j].GetActivityStreamsRelationship()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 47 {
|
||||
} else if idx1 == 48 {
|
||||
lhs := this.properties[i].GetActivityStreamsRemove()
|
||||
rhs := this.properties[j].GetActivityStreamsRemove()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 48 {
|
||||
} else if idx1 == 49 {
|
||||
lhs := this.properties[i].GetForgeFedRepository()
|
||||
rhs := this.properties[j].GetForgeFedRepository()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 49 {
|
||||
} else if idx1 == 50 {
|
||||
lhs := this.properties[i].GetActivityStreamsService()
|
||||
rhs := this.properties[j].GetActivityStreamsService()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 50 {
|
||||
} else if idx1 == 51 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 51 {
|
||||
} else if idx1 == 52 {
|
||||
lhs := this.properties[i].GetActivityStreamsTentativeReject()
|
||||
rhs := this.properties[j].GetActivityStreamsTentativeReject()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 52 {
|
||||
} else if idx1 == 53 {
|
||||
lhs := this.properties[i].GetForgeFedTicket()
|
||||
rhs := this.properties[j].GetForgeFedTicket()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 53 {
|
||||
} else if idx1 == 54 {
|
||||
lhs := this.properties[i].GetForgeFedTicketDependency()
|
||||
rhs := this.properties[j].GetForgeFedTicketDependency()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 54 {
|
||||
} else if idx1 == 55 {
|
||||
lhs := this.properties[i].GetActivityStreamsTombstone()
|
||||
rhs := this.properties[j].GetActivityStreamsTombstone()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 55 {
|
||||
} else if idx1 == 56 {
|
||||
lhs := this.properties[i].GetActivityStreamsTravel()
|
||||
rhs := this.properties[j].GetActivityStreamsTravel()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 56 {
|
||||
} else if idx1 == 57 {
|
||||
lhs := this.properties[i].GetActivityStreamsUndo()
|
||||
rhs := this.properties[j].GetActivityStreamsUndo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 57 {
|
||||
} else if idx1 == 58 {
|
||||
lhs := this.properties[i].GetActivityStreamsUpdate()
|
||||
rhs := this.properties[j].GetActivityStreamsUpdate()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 58 {
|
||||
} else if idx1 == 59 {
|
||||
lhs := this.properties[i].GetActivityStreamsVideo()
|
||||
rhs := this.properties[j].GetActivityStreamsVideo()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 59 {
|
||||
} else if idx1 == 60 {
|
||||
lhs := this.properties[i].GetActivityStreamsView()
|
||||
rhs := this.properties[j].GetActivityStreamsView()
|
||||
return lhs.LessThan(rhs)
|
||||
|
|
@ -5984,6 +6063,20 @@ func (this *ForgeFedTracksTicketsForProperty) PrependIRI(v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
|
||||
// list of the property "tracksTicketsFor". Invalidates all iterators.
|
||||
func (this *ForgeFedTracksTicketsForProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
|
||||
this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the property
|
||||
// "tracksTicketsFor". Invalidates all iterators.
|
||||
func (this *ForgeFedTracksTicketsForProperty) PrependTootEmoji(v vocab.TootEmoji) {
|
||||
|
|
@ -6830,6 +6923,19 @@ func (this *ForgeFedTracksTicketsForProperty) SetIRI(idx int, v *url.URL) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
|
||||
// for the property "tracksTicketsFor". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ForgeFedTracksTicketsForProperty) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
schemaPropertyValueMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the property
|
||||
// "tracksTicketsFor". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
|
|
|
|||
17
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/property_value/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/property_value/gen_doc.go
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package propertyvalue contains the implementation for the value 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 propertyvalue
|
||||
15
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/property_value/gen_pkg.go
generated
vendored
Normal file
15
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/property_value/gen_pkg.go
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertyvalue
|
||||
|
||||
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
|
||||
}
|
||||
203
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/property_value/gen_property_schema_value.go
generated
vendored
Normal file
203
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/property_value/gen_property_schema_value.go
generated
vendored
Normal file
|
|
@ -0,0 +1,203 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertyvalue
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
string1 "github.com/superseriousbusiness/activity/streams/values/string"
|
||||
vocab "github.com/superseriousbusiness/activity/streams/vocab"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// SchemaValueProperty is the functional property "value". It is permitted to be a
|
||||
// single default-valued value type.
|
||||
type SchemaValueProperty struct {
|
||||
xmlschemaStringMember string
|
||||
hasStringMember bool
|
||||
unknown interface{}
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeValueProperty creates a "value" property from an interface
|
||||
// representation that has been unmarshalled from a text or binary format.
|
||||
func DeserializeValueProperty(m map[string]interface{}, aliasMap map[string]string) (*SchemaValueProperty, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["http://schema.org"]; ok {
|
||||
alias = a
|
||||
}
|
||||
propName := "value"
|
||||
if len(alias) > 0 {
|
||||
// Use alias both to find the property, and set within the property.
|
||||
propName = fmt.Sprintf("%s:%s", alias, "value")
|
||||
}
|
||||
i, ok := m[propName]
|
||||
|
||||
if ok {
|
||||
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 := &SchemaValueProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := string1.DeserializeString(i); err == nil {
|
||||
this := &SchemaValueProperty{
|
||||
alias: alias,
|
||||
hasStringMember: true,
|
||||
xmlschemaStringMember: v,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
this := &SchemaValueProperty{
|
||||
alias: alias,
|
||||
unknown: i,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewSchemaValueProperty creates a new value property.
|
||||
func NewSchemaValueProperty() *SchemaValueProperty {
|
||||
return &SchemaValueProperty{alias: ""}
|
||||
}
|
||||
|
||||
// Clear ensures no value of this property is set. Calling IsXMLSchemaString
|
||||
// afterwards will return false.
|
||||
func (this *SchemaValueProperty) Clear() {
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.hasStringMember = false
|
||||
}
|
||||
|
||||
// Get returns the value of this property. When IsXMLSchemaString returns false,
|
||||
// Get will return any arbitrary value.
|
||||
func (this SchemaValueProperty) Get() string {
|
||||
return this.xmlschemaStringMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
func (this SchemaValueProperty) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this SchemaValueProperty) HasAny() bool {
|
||||
return this.IsXMLSchemaString() || this.iri != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
func (this SchemaValueProperty) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsXMLSchemaString returns true if this property is set and not an IRI.
|
||||
func (this SchemaValueProperty) IsXMLSchemaString() bool {
|
||||
return this.hasStringMember
|
||||
}
|
||||
|
||||
// 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 SchemaValueProperty) JSONLDContext() map[string]string {
|
||||
m := map[string]string{"http://schema.org": 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 SchemaValueProperty) KindIndex() int {
|
||||
if this.IsXMLSchemaString() {
|
||||
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 SchemaValueProperty) LessThan(o vocab.SchemaValueProperty) 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.IsXMLSchemaString() && !o.IsXMLSchemaString() {
|
||||
// Both are unknowns.
|
||||
return false
|
||||
} else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() {
|
||||
// Values are always greater than unknown values.
|
||||
return false
|
||||
} else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() {
|
||||
// Unknowns are always less than known values.
|
||||
return true
|
||||
} else {
|
||||
// Actual comparison.
|
||||
return string1.LessString(this.Get(), o.Get())
|
||||
}
|
||||
}
|
||||
|
||||
// Name returns the name of this property: "value".
|
||||
func (this SchemaValueProperty) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "value"
|
||||
} else {
|
||||
return "value"
|
||||
}
|
||||
}
|
||||
|
||||
// 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 SchemaValueProperty) Serialize() (interface{}, error) {
|
||||
if this.IsXMLSchemaString() {
|
||||
return string1.SerializeString(this.Get())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsXMLSchemaString afterwards will
|
||||
// return true.
|
||||
func (this *SchemaValueProperty) Set(v string) {
|
||||
this.Clear()
|
||||
this.xmlschemaStringMember = v
|
||||
this.hasStringMember = true
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
|
||||
// true.
|
||||
func (this *SchemaValueProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
this.iri = v
|
||||
}
|
||||
17
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_doc.go
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package typepropertyvalue contains the implementation for the PropertyValue
|
||||
// type. 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 typepropertyvalue
|
||||
195
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go
generated
vendored
Normal file
195
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go
generated
vendored
Normal file
|
|
@ -0,0 +1,195 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package typepropertyvalue
|
||||
|
||||
import vocab "github.com/superseriousbusiness/activity/streams/vocab"
|
||||
|
||||
var mgr privateManager
|
||||
|
||||
var typePropertyConstructor func() vocab.JSONLDTypeProperty
|
||||
|
||||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
|
||||
// DeserializeAttachmentPropertyActivityStreams returns the
|
||||
// deserialization method for the "ActivityStreamsAttachmentProperty"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
|
||||
// DeserializeAttributedToPropertyActivityStreams returns the
|
||||
// deserialization method for the
|
||||
// "ActivityStreamsAttributedToProperty" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
|
||||
// DeserializeAudiencePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsAudienceProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
|
||||
// DeserializeBccPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsBccProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
|
||||
// DeserializeBtoPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsBtoProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
|
||||
// DeserializeCcPropertyActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsCcProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
|
||||
// DeserializeContentPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsContentProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
|
||||
// DeserializeContextPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsContextProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
|
||||
// DeserializeDurationPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsDurationProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
|
||||
// DeserializeEndTimePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsEndTimeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
|
||||
// DeserializeGeneratorPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsGeneratorProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
|
||||
// DeserializeIconPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsIconProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
|
||||
// DeserializeIdPropertyJSONLD returns the deserialization method for the
|
||||
// "JSONLDIdProperty" non-functional property in the vocabulary
|
||||
// "JSONLD"
|
||||
DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
|
||||
// DeserializeImagePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsImageProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
|
||||
// DeserializeInReplyToPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsInReplyToProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
|
||||
// DeserializeLikesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsLikesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
|
||||
// DeserializeLocationPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsLocationProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
|
||||
// DeserializeMediaTypePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
||||
// DeserializeNamePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsNameProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
|
||||
// DeserializeObjectPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsObjectProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
|
||||
// DeserializePreviewPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsPreviewProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
|
||||
// DeserializePublishedPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsPublishedProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
|
||||
// DeserializeRepliesPropertyActivityStreams returns the deserialization
|
||||
// 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"
|
||||
DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
|
||||
// DeserializeSourcePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSourceProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
|
||||
// DeserializeStartTimePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsStartTimeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
|
||||
// DeserializeSummaryPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSummaryProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
|
||||
// DeserializeTagPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsTagProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
|
||||
// DeserializeTeamPropertyForgeFed returns the deserialization method for
|
||||
// the "ForgeFedTeamProperty" non-functional property in the
|
||||
// vocabulary "ForgeFed"
|
||||
DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
|
||||
// DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
|
||||
// method for the "ForgeFedTicketsTrackedByProperty" non-functional
|
||||
// property in the vocabulary "ForgeFed"
|
||||
DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
|
||||
// DeserializeToPropertyActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsToProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
|
||||
// DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
|
||||
// method for the "ForgeFedTracksTicketsForProperty" non-functional
|
||||
// property in the vocabulary "ForgeFed"
|
||||
DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
|
||||
// DeserializeTypePropertyJSONLD returns the deserialization method for
|
||||
// the "JSONLDTypeProperty" non-functional property in the vocabulary
|
||||
// "JSONLD"
|
||||
DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
|
||||
// DeserializeUpdatedPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsUpdatedProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
|
||||
// DeserializeUrlPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsUrlProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
|
||||
// DeserializeValuePropertySchema returns the deserialization method for
|
||||
// the "SchemaValueProperty" non-functional property in the vocabulary
|
||||
// "Schema"
|
||||
DeserializeValuePropertySchema() func(map[string]interface{}, map[string]string) (vocab.SchemaValueProperty, error)
|
||||
}
|
||||
|
||||
// jsonldContexter is a private interface to determine the JSON-LD contexts and
|
||||
// aliases needed for functional and non-functional properties. It is a helper
|
||||
// interface for this implementation.
|
||||
type jsonldContexter interface {
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
// SetTypePropertyConstructor sets the "type" property's constructor in the
|
||||
// package-global variable. For internal use only, do not use as part of
|
||||
// Application behavior. Must be called at golang init time. Permits
|
||||
// ActivityStreams types to correctly set their "type" property at
|
||||
// construction time, so users don't have to remember to do so each time. It
|
||||
// is dependency injected so other go-fed compatible implementations could
|
||||
// inject their own type.
|
||||
func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
|
||||
typePropertyConstructor = f
|
||||
}
|
||||
1807
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go
generated
vendored
Normal file
1807
vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -251,6 +251,10 @@ type ActivityStreamsActorPropertyIterator interface {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return an arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
|
||||
// return an arbitrary value.
|
||||
GetSchemaPropertyValue() SchemaPropertyValue
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji
|
||||
// returns false, GetTootEmoji will return an arbitrary value.
|
||||
GetTootEmoji() TootEmoji
|
||||
|
|
@ -524,6 +528,10 @@ type ActivityStreamsActorPropertyIterator interface {
|
|||
// IsIRI returns true if this property is an IRI. When true, use GetIRI
|
||||
// and SetIRI to access and set this property
|
||||
IsIRI() bool
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
IsSchemaPropertyValue() bool
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When
|
||||
// true, use the GetTootEmoji and SetTootEmoji methods to access and
|
||||
// set this property.
|
||||
|
|
@ -738,6 +746,9 @@ type ActivityStreamsActorPropertyIterator interface {
|
|||
// SetIRI sets the value of this property. Calling IsIRI afterwards
|
||||
// returns true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
SetSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
|
||||
// afterwards returns true.
|
||||
SetTootEmoji(v TootEmoji)
|
||||
|
|
@ -1031,6 +1042,10 @@ type ActivityStreamsActorProperty interface {
|
|||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "actor"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of
|
||||
// a list of the property "actor". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the
|
||||
// property "actor". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
|
|
@ -1307,6 +1322,10 @@ type ActivityStreamsActorProperty interface {
|
|||
// "actor". Existing elements at that index and higher are shifted
|
||||
// back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the
|
||||
// specified index for a property "actor". Existing elements at that
|
||||
// index and higher are shifted back once. Invalidates all iterators.
|
||||
InsertSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a
|
||||
// property "actor". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
|
|
@ -1531,6 +1550,9 @@ type ActivityStreamsActorProperty interface {
|
|||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "actor".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front
|
||||
// of a list of the property "actor". Invalidates all iterators.
|
||||
PrependSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the
|
||||
// property "actor". Invalidates all iterators.
|
||||
PrependTootEmoji(v TootEmoji)
|
||||
|
|
@ -1794,6 +1816,10 @@ type ActivityStreamsActorProperty interface {
|
|||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "actor". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the
|
||||
// specified index for the property "actor". Panics if the index is
|
||||
// out of bounds. Invalidates all iterators.
|
||||
SetSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the
|
||||
// property "actor". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
|
|
|
|||
|
|
@ -251,6 +251,10 @@ type ActivityStreamsAnyOfPropertyIterator interface {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return an arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
|
||||
// return an arbitrary value.
|
||||
GetSchemaPropertyValue() SchemaPropertyValue
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji
|
||||
// returns false, GetTootEmoji will return an arbitrary value.
|
||||
GetTootEmoji() TootEmoji
|
||||
|
|
@ -524,6 +528,10 @@ type ActivityStreamsAnyOfPropertyIterator interface {
|
|||
// IsIRI returns true if this property is an IRI. When true, use GetIRI
|
||||
// and SetIRI to access and set this property
|
||||
IsIRI() bool
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
IsSchemaPropertyValue() bool
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When
|
||||
// true, use the GetTootEmoji and SetTootEmoji methods to access and
|
||||
// set this property.
|
||||
|
|
@ -738,6 +746,9 @@ type ActivityStreamsAnyOfPropertyIterator interface {
|
|||
// SetIRI sets the value of this property. Calling IsIRI afterwards
|
||||
// returns true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
SetSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
|
||||
// afterwards returns true.
|
||||
SetTootEmoji(v TootEmoji)
|
||||
|
|
@ -1012,6 +1023,10 @@ type ActivityStreamsAnyOfProperty interface {
|
|||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "anyOf"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of
|
||||
// a list of the property "anyOf". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the
|
||||
// property "anyOf". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
|
|
@ -1288,6 +1303,10 @@ type ActivityStreamsAnyOfProperty interface {
|
|||
// "anyOf". Existing elements at that index and higher are shifted
|
||||
// back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the
|
||||
// specified index for a property "anyOf". Existing elements at that
|
||||
// index and higher are shifted back once. Invalidates all iterators.
|
||||
InsertSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a
|
||||
// property "anyOf". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
|
|
@ -1512,6 +1531,9 @@ type ActivityStreamsAnyOfProperty interface {
|
|||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "anyOf".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front
|
||||
// of a list of the property "anyOf". Invalidates all iterators.
|
||||
PrependSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the
|
||||
// property "anyOf". Invalidates all iterators.
|
||||
PrependTootEmoji(v TootEmoji)
|
||||
|
|
@ -1775,6 +1797,10 @@ type ActivityStreamsAnyOfProperty interface {
|
|||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "anyOf". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the
|
||||
// specified index for the property "anyOf". Panics if the index is
|
||||
// out of bounds. Invalidates all iterators.
|
||||
SetSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the
|
||||
// property "anyOf". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
|
|
|
|||
|
|
@ -251,6 +251,10 @@ type ActivityStreamsAttachmentPropertyIterator interface {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return an arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
|
||||
// return an arbitrary value.
|
||||
GetSchemaPropertyValue() SchemaPropertyValue
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji
|
||||
// returns false, GetTootEmoji will return an arbitrary value.
|
||||
GetTootEmoji() TootEmoji
|
||||
|
|
@ -524,6 +528,10 @@ type ActivityStreamsAttachmentPropertyIterator interface {
|
|||
// IsIRI returns true if this property is an IRI. When true, use GetIRI
|
||||
// and SetIRI to access and set this property
|
||||
IsIRI() bool
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
IsSchemaPropertyValue() bool
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When
|
||||
// true, use the GetTootEmoji and SetTootEmoji methods to access and
|
||||
// set this property.
|
||||
|
|
@ -738,6 +746,9 @@ type ActivityStreamsAttachmentPropertyIterator interface {
|
|||
// SetIRI sets the value of this property. Calling IsIRI afterwards
|
||||
// returns true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
SetSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
|
||||
// afterwards returns true.
|
||||
SetTootEmoji(v TootEmoji)
|
||||
|
|
@ -1007,6 +1018,10 @@ type ActivityStreamsAttachmentProperty interface {
|
|||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "attachment"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of
|
||||
// a list of the property "attachment". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the
|
||||
// property "attachment". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
|
|
@ -1289,6 +1304,11 @@ type ActivityStreamsAttachmentProperty interface {
|
|||
// "attachment". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the
|
||||
// specified index for a property "attachment". Existing elements at
|
||||
// that index and higher are shifted back once. Invalidates all
|
||||
// iterators.
|
||||
InsertSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a
|
||||
// property "attachment". Existing elements at that index and higher
|
||||
// are shifted back once. Invalidates all iterators.
|
||||
|
|
@ -1518,6 +1538,9 @@ type ActivityStreamsAttachmentProperty interface {
|
|||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "attachment".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front
|
||||
// of a list of the property "attachment". Invalidates all iterators.
|
||||
PrependSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the
|
||||
// property "attachment". Invalidates all iterators.
|
||||
PrependTootEmoji(v TootEmoji)
|
||||
|
|
@ -1781,6 +1804,10 @@ type ActivityStreamsAttachmentProperty interface {
|
|||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "attachment". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the
|
||||
// specified index for the property "attachment". Panics if the index
|
||||
// is out of bounds. Invalidates all iterators.
|
||||
SetSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the
|
||||
// property "attachment". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
|
|
|
|||
|
|
@ -251,6 +251,10 @@ type ActivityStreamsAttributedToPropertyIterator interface {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return an arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
|
||||
// return an arbitrary value.
|
||||
GetSchemaPropertyValue() SchemaPropertyValue
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji
|
||||
// returns false, GetTootEmoji will return an arbitrary value.
|
||||
GetTootEmoji() TootEmoji
|
||||
|
|
@ -524,6 +528,10 @@ type ActivityStreamsAttributedToPropertyIterator interface {
|
|||
// IsIRI returns true if this property is an IRI. When true, use GetIRI
|
||||
// and SetIRI to access and set this property
|
||||
IsIRI() bool
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
IsSchemaPropertyValue() bool
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When
|
||||
// true, use the GetTootEmoji and SetTootEmoji methods to access and
|
||||
// set this property.
|
||||
|
|
@ -738,6 +746,9 @@ type ActivityStreamsAttributedToPropertyIterator interface {
|
|||
// SetIRI sets the value of this property. Calling IsIRI afterwards
|
||||
// returns true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
SetSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
|
||||
// afterwards returns true.
|
||||
SetTootEmoji(v TootEmoji)
|
||||
|
|
@ -1023,6 +1034,10 @@ type ActivityStreamsAttributedToProperty interface {
|
|||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "attributedTo"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of
|
||||
// a list of the property "attributedTo". Invalidates iterators that
|
||||
// are traversing using Prev.
|
||||
AppendSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the
|
||||
// property "attributedTo". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
|
|
@ -1305,6 +1320,11 @@ type ActivityStreamsAttributedToProperty interface {
|
|||
// "attributedTo". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the
|
||||
// specified index for a property "attributedTo". Existing elements at
|
||||
// that index and higher are shifted back once. Invalidates all
|
||||
// iterators.
|
||||
InsertSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a
|
||||
// property "attributedTo". Existing elements at that index and higher
|
||||
// are shifted back once. Invalidates all iterators.
|
||||
|
|
@ -1534,6 +1554,9 @@ type ActivityStreamsAttributedToProperty interface {
|
|||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "attributedTo".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front
|
||||
// of a list of the property "attributedTo". Invalidates all iterators.
|
||||
PrependSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the
|
||||
// property "attributedTo". Invalidates all iterators.
|
||||
PrependTootEmoji(v TootEmoji)
|
||||
|
|
@ -1797,6 +1820,10 @@ type ActivityStreamsAttributedToProperty interface {
|
|||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "attributedTo". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the
|
||||
// specified index for the property "attributedTo". Panics if the
|
||||
// index is out of bounds. Invalidates all iterators.
|
||||
SetSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the
|
||||
// property "attributedTo". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
|
|
|
|||
|
|
@ -251,6 +251,10 @@ type ActivityStreamsAudiencePropertyIterator interface {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return an arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
|
||||
// return an arbitrary value.
|
||||
GetSchemaPropertyValue() SchemaPropertyValue
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji
|
||||
// returns false, GetTootEmoji will return an arbitrary value.
|
||||
GetTootEmoji() TootEmoji
|
||||
|
|
@ -524,6 +528,10 @@ type ActivityStreamsAudiencePropertyIterator interface {
|
|||
// IsIRI returns true if this property is an IRI. When true, use GetIRI
|
||||
// and SetIRI to access and set this property
|
||||
IsIRI() bool
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
IsSchemaPropertyValue() bool
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When
|
||||
// true, use the GetTootEmoji and SetTootEmoji methods to access and
|
||||
// set this property.
|
||||
|
|
@ -738,6 +746,9 @@ type ActivityStreamsAudiencePropertyIterator interface {
|
|||
// SetIRI sets the value of this property. Calling IsIRI afterwards
|
||||
// returns true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
SetSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
|
||||
// afterwards returns true.
|
||||
SetTootEmoji(v TootEmoji)
|
||||
|
|
@ -1007,6 +1018,10 @@ type ActivityStreamsAudienceProperty interface {
|
|||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "audience"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of
|
||||
// a list of the property "audience". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the
|
||||
// property "audience". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
|
|
@ -1289,6 +1304,11 @@ type ActivityStreamsAudienceProperty interface {
|
|||
// "audience". Existing elements at that index and higher are shifted
|
||||
// back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the
|
||||
// specified index for a property "audience". Existing elements at
|
||||
// that index and higher are shifted back once. Invalidates all
|
||||
// iterators.
|
||||
InsertSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a
|
||||
// property "audience". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
|
|
@ -1517,6 +1537,9 @@ type ActivityStreamsAudienceProperty interface {
|
|||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "audience".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front
|
||||
// of a list of the property "audience". Invalidates all iterators.
|
||||
PrependSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the
|
||||
// property "audience". Invalidates all iterators.
|
||||
PrependTootEmoji(v TootEmoji)
|
||||
|
|
@ -1780,6 +1803,10 @@ type ActivityStreamsAudienceProperty interface {
|
|||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "audience". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the
|
||||
// specified index for the property "audience". Panics if the index is
|
||||
// out of bounds. Invalidates all iterators.
|
||||
SetSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the
|
||||
// property "audience". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
|
|
|
|||
|
|
@ -251,6 +251,10 @@ type ActivityStreamsBccPropertyIterator interface {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return an arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
|
||||
// return an arbitrary value.
|
||||
GetSchemaPropertyValue() SchemaPropertyValue
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji
|
||||
// returns false, GetTootEmoji will return an arbitrary value.
|
||||
GetTootEmoji() TootEmoji
|
||||
|
|
@ -524,6 +528,10 @@ type ActivityStreamsBccPropertyIterator interface {
|
|||
// IsIRI returns true if this property is an IRI. When true, use GetIRI
|
||||
// and SetIRI to access and set this property
|
||||
IsIRI() bool
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
IsSchemaPropertyValue() bool
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When
|
||||
// true, use the GetTootEmoji and SetTootEmoji methods to access and
|
||||
// set this property.
|
||||
|
|
@ -738,6 +746,9 @@ type ActivityStreamsBccPropertyIterator interface {
|
|||
// SetIRI sets the value of this property. Calling IsIRI afterwards
|
||||
// returns true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
SetSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
|
||||
// afterwards returns true.
|
||||
SetTootEmoji(v TootEmoji)
|
||||
|
|
@ -1005,6 +1016,10 @@ type ActivityStreamsBccProperty interface {
|
|||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "bcc"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of
|
||||
// a list of the property "bcc". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the
|
||||
// property "bcc". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
|
|
@ -1278,6 +1293,10 @@ type ActivityStreamsBccProperty interface {
|
|||
// "bcc". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the
|
||||
// specified index for a property "bcc". Existing elements at that
|
||||
// index and higher are shifted back once. Invalidates all iterators.
|
||||
InsertSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a
|
||||
// property "bcc". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
|
|
@ -1502,6 +1521,9 @@ type ActivityStreamsBccProperty interface {
|
|||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "bcc".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front
|
||||
// of a list of the property "bcc". Invalidates all iterators.
|
||||
PrependSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the
|
||||
// property "bcc". Invalidates all iterators.
|
||||
PrependTootEmoji(v TootEmoji)
|
||||
|
|
@ -1765,6 +1787,10 @@ type ActivityStreamsBccProperty interface {
|
|||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "bcc". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the
|
||||
// specified index for the property "bcc". Panics if the index is out
|
||||
// of bounds. Invalidates all iterators.
|
||||
SetSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the
|
||||
// property "bcc". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
|
|
|
|||
|
|
@ -251,6 +251,10 @@ type ActivityStreamsBtoPropertyIterator interface {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return an arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
|
||||
// return an arbitrary value.
|
||||
GetSchemaPropertyValue() SchemaPropertyValue
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji
|
||||
// returns false, GetTootEmoji will return an arbitrary value.
|
||||
GetTootEmoji() TootEmoji
|
||||
|
|
@ -524,6 +528,10 @@ type ActivityStreamsBtoPropertyIterator interface {
|
|||
// IsIRI returns true if this property is an IRI. When true, use GetIRI
|
||||
// and SetIRI to access and set this property
|
||||
IsIRI() bool
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
IsSchemaPropertyValue() bool
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When
|
||||
// true, use the GetTootEmoji and SetTootEmoji methods to access and
|
||||
// set this property.
|
||||
|
|
@ -738,6 +746,9 @@ type ActivityStreamsBtoPropertyIterator interface {
|
|||
// SetIRI sets the value of this property. Calling IsIRI afterwards
|
||||
// returns true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
SetSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
|
||||
// afterwards returns true.
|
||||
SetTootEmoji(v TootEmoji)
|
||||
|
|
@ -1005,6 +1016,10 @@ type ActivityStreamsBtoProperty interface {
|
|||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "bto"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of
|
||||
// a list of the property "bto". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the
|
||||
// property "bto". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
|
|
@ -1278,6 +1293,10 @@ type ActivityStreamsBtoProperty interface {
|
|||
// "bto". Existing elements at that index and higher are shifted back
|
||||
// once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the
|
||||
// specified index for a property "bto". Existing elements at that
|
||||
// index and higher are shifted back once. Invalidates all iterators.
|
||||
InsertSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a
|
||||
// property "bto". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
|
|
@ -1502,6 +1521,9 @@ type ActivityStreamsBtoProperty interface {
|
|||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "bto".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front
|
||||
// of a list of the property "bto". Invalidates all iterators.
|
||||
PrependSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the
|
||||
// property "bto". Invalidates all iterators.
|
||||
PrependTootEmoji(v TootEmoji)
|
||||
|
|
@ -1765,6 +1787,10 @@ type ActivityStreamsBtoProperty interface {
|
|||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "bto". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the
|
||||
// specified index for the property "bto". Panics if the index is out
|
||||
// of bounds. Invalidates all iterators.
|
||||
SetSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the
|
||||
// property "bto". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
|
|
|
|||
|
|
@ -251,6 +251,10 @@ type ActivityStreamsCcPropertyIterator interface {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return an arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
|
||||
// return an arbitrary value.
|
||||
GetSchemaPropertyValue() SchemaPropertyValue
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji
|
||||
// returns false, GetTootEmoji will return an arbitrary value.
|
||||
GetTootEmoji() TootEmoji
|
||||
|
|
@ -524,6 +528,10 @@ type ActivityStreamsCcPropertyIterator interface {
|
|||
// IsIRI returns true if this property is an IRI. When true, use GetIRI
|
||||
// and SetIRI to access and set this property
|
||||
IsIRI() bool
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
IsSchemaPropertyValue() bool
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When
|
||||
// true, use the GetTootEmoji and SetTootEmoji methods to access and
|
||||
// set this property.
|
||||
|
|
@ -738,6 +746,9 @@ type ActivityStreamsCcPropertyIterator interface {
|
|||
// SetIRI sets the value of this property. Calling IsIRI afterwards
|
||||
// returns true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
SetSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
|
||||
// afterwards returns true.
|
||||
SetTootEmoji(v TootEmoji)
|
||||
|
|
@ -1004,6 +1015,10 @@ type ActivityStreamsCcProperty interface {
|
|||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "cc"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of
|
||||
// a list of the property "cc". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the
|
||||
// property "cc". Invalidates iterators that are traversing using Prev.
|
||||
AppendTootEmoji(v TootEmoji)
|
||||
|
|
@ -1276,6 +1291,10 @@ type ActivityStreamsCcProperty interface {
|
|||
// Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the
|
||||
// specified index for a property "cc". Existing elements at that
|
||||
// index and higher are shifted back once. Invalidates all iterators.
|
||||
InsertSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a
|
||||
// property "cc". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
|
|
@ -1498,6 +1517,9 @@ type ActivityStreamsCcProperty interface {
|
|||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "cc".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front
|
||||
// of a list of the property "cc". Invalidates all iterators.
|
||||
PrependSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the
|
||||
// property "cc". Invalidates all iterators.
|
||||
PrependTootEmoji(v TootEmoji)
|
||||
|
|
@ -1761,6 +1783,10 @@ type ActivityStreamsCcProperty interface {
|
|||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "cc". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the
|
||||
// specified index for the property "cc". Panics if the index is out
|
||||
// of bounds. Invalidates all iterators.
|
||||
SetSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the
|
||||
// property "cc". Panics if the index is out of bounds. Invalidates
|
||||
// all iterators.
|
||||
|
|
|
|||
|
|
@ -254,6 +254,10 @@ type ActivityStreamsClosedPropertyIterator interface {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return an arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetSchemaPropertyValue returns the value of this property. When
|
||||
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will
|
||||
// return an arbitrary value.
|
||||
GetSchemaPropertyValue() SchemaPropertyValue
|
||||
// GetTootEmoji returns the value of this property. When IsTootEmoji
|
||||
// returns false, GetTootEmoji will return an arbitrary value.
|
||||
GetTootEmoji() TootEmoji
|
||||
|
|
@ -535,6 +539,10 @@ type ActivityStreamsClosedPropertyIterator interface {
|
|||
// IsIRI returns true if this property is an IRI. When true, use GetIRI
|
||||
// and SetIRI to access and set this property
|
||||
IsIRI() bool
|
||||
// IsSchemaPropertyValue returns true if this property has a type of
|
||||
// "PropertyValue". When true, use the GetSchemaPropertyValue and
|
||||
// SetSchemaPropertyValue methods to access and set this property.
|
||||
IsSchemaPropertyValue() bool
|
||||
// IsTootEmoji returns true if this property has a type of "Emoji". When
|
||||
// true, use the GetTootEmoji and SetTootEmoji methods to access and
|
||||
// set this property.
|
||||
|
|
@ -757,6 +765,9 @@ type ActivityStreamsClosedPropertyIterator interface {
|
|||
// SetIRI sets the value of this property. Calling IsIRI afterwards
|
||||
// returns true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetSchemaPropertyValue sets the value of this property. Calling
|
||||
// IsSchemaPropertyValue afterwards returns true.
|
||||
SetSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
|
||||
// afterwards returns true.
|
||||
SetTootEmoji(v TootEmoji)
|
||||
|
|
@ -1026,6 +1037,10 @@ type ActivityStreamsClosedProperty interface {
|
|||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "closed"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendSchemaPropertyValue appends a PropertyValue value to the back of
|
||||
// a list of the property "closed". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// AppendTootEmoji appends a Emoji value to the back of a list of the
|
||||
// property "closed". Invalidates iterators that are traversing using
|
||||
// Prev.
|
||||
|
|
@ -1310,6 +1325,10 @@ type ActivityStreamsClosedProperty interface {
|
|||
// "closed". Existing elements at that index and higher are shifted
|
||||
// back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertSchemaPropertyValue inserts a PropertyValue value at the
|
||||
// specified index for a property "closed". Existing elements at that
|
||||
// index and higher are shifted back once. Invalidates all iterators.
|
||||
InsertSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// InsertTootEmoji inserts a Emoji value at the specified index for a
|
||||
// property "closed". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
|
|
@ -1542,6 +1561,9 @@ type ActivityStreamsClosedProperty interface {
|
|||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "closed".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependSchemaPropertyValue prepends a PropertyValue value to the front
|
||||
// of a list of the property "closed". Invalidates all iterators.
|
||||
PrependSchemaPropertyValue(v SchemaPropertyValue)
|
||||
// PrependTootEmoji prepends a Emoji value to the front of a list of the
|
||||
// property "closed". Invalidates all iterators.
|
||||
PrependTootEmoji(v TootEmoji)
|
||||
|
|
@ -1811,6 +1833,10 @@ type ActivityStreamsClosedProperty interface {
|
|||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "closed". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetSchemaPropertyValue sets a PropertyValue value to be at the
|
||||
// specified index for the property "closed". Panics if the index is
|
||||
// out of bounds. Invalidates all iterators.
|
||||
SetSchemaPropertyValue(idx int, v SchemaPropertyValue)
|
||||
// SetTootEmoji sets a Emoji value to be at the specified index for the
|
||||
// property "closed". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue