summaryrefslogtreecommitdiff
path: root/vendor/github.com/superseriousbusiness/activity/streams/impl/schema
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/superseriousbusiness/activity/streams/impl/schema')
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go12
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go127
2 files changed, 1 insertions, 138 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go
index cd6ae4a7e..051d45452 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go
@@ -132,22 +132,10 @@ type privateManager interface {
// 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"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go
index c3190b56e..13205cf8b 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go
@@ -41,10 +41,7 @@ type SchemaPropertyValue struct {
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty
ActivityStreamsTag vocab.ActivityStreamsTagProperty
- ForgeFedTeam vocab.ForgeFedTeamProperty
- ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty
ActivityStreamsTo vocab.ActivityStreamsToProperty
- ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty
JSONLDType vocab.JSONLDTypeProperty
ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty
ActivityStreamsUrl vocab.ActivityStreamsUrlProperty
@@ -240,26 +237,11 @@ func DeserializePropertyValue(m map[string]interface{}, aliasMap map[string]stri
} else if p != nil {
this.ActivityStreamsTag = p
}
- if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTeam = p
- }
- if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTicketsTrackedBy = p
- }
if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
this.ActivityStreamsTo = p
}
- if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTracksTicketsFor = p
- }
if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -351,14 +333,8 @@ func DeserializePropertyValue(m map[string]interface{}, aliasMap map[string]stri
continue
} else if k == "tag" {
continue
- } else if k == "team" {
- continue
- } else if k == "ticketsTrackedBy" {
- continue
} else if k == "to" {
continue
- } else if k == "tracksTicketsFor" {
- continue
} else if k == "type" {
continue
} else if k == "updated" {
@@ -399,7 +375,7 @@ func NewSchemaPropertyValue() *SchemaPropertyValue {
// PropertyValueIsDisjointWith returns true if the other provided type is disjoint
// with the PropertyValue type.
func PropertyValueIsDisjointWith(other vocab.Type) bool {
- disjointWith := []string{"Link", "Mention"}
+ disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true
@@ -618,23 +594,6 @@ func (this SchemaPropertyValue) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
-// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise.
-func (this SchemaPropertyValue) GetForgeFedTeam() vocab.ForgeFedTeamProperty {
- return this.ForgeFedTeam
-}
-
-// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it
-// exists, and nil otherwise.
-func (this SchemaPropertyValue) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty {
- return this.ForgeFedTicketsTrackedBy
-}
-
-// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it
-// exists, and nil otherwise.
-func (this SchemaPropertyValue) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty {
- return this.ForgeFedTracksTicketsFor
-}
-
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this SchemaPropertyValue) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -705,10 +664,7 @@ func (this SchemaPropertyValue) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
m = this.helperJSONLDContext(this.ActivityStreamsSummary, m)
m = this.helperJSONLDContext(this.ActivityStreamsTag, m)
- m = this.helperJSONLDContext(this.ForgeFedTeam, m)
- m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsTo, m)
- m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m)
m = this.helperJSONLDContext(this.JSONLDType, m)
m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m)
m = this.helperJSONLDContext(this.ActivityStreamsUrl, m)
@@ -1141,34 +1097,6 @@ func (this SchemaPropertyValue) LessThan(o vocab.SchemaPropertyValue) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
- // Compare property "team"
- if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "ticketsTrackedBy"
- if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
// Compare property "to"
if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1183,20 +1111,6 @@ func (this SchemaPropertyValue) LessThan(o vocab.SchemaPropertyValue) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
- // Compare property "tracksTicketsFor"
- if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
// Compare property "type"
if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1516,22 +1430,6 @@ func (this SchemaPropertyValue) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsTag.Name()] = i
}
}
- // Maybe serialize property "team"
- if this.ForgeFedTeam != nil {
- if i, err := this.ForgeFedTeam.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ForgeFedTeam.Name()] = i
- }
- }
- // Maybe serialize property "ticketsTrackedBy"
- if this.ForgeFedTicketsTrackedBy != nil {
- if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ForgeFedTicketsTrackedBy.Name()] = i
- }
- }
// Maybe serialize property "to"
if this.ActivityStreamsTo != nil {
if i, err := this.ActivityStreamsTo.Serialize(); err != nil {
@@ -1540,14 +1438,6 @@ func (this SchemaPropertyValue) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsTo.Name()] = i
}
}
- // Maybe serialize property "tracksTicketsFor"
- if this.ForgeFedTracksTicketsFor != nil {
- if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ForgeFedTracksTicketsFor.Name()] = i
- }
- }
// Maybe serialize property "type"
if this.JSONLDType != nil {
if i, err := this.JSONLDType.Serialize(); err != nil {
@@ -1754,21 +1644,6 @@ func (this *SchemaPropertyValue) SetActivityStreamsUrl(i vocab.ActivityStreamsUr
this.ActivityStreamsUrl = i
}
-// SetForgeFedTeam sets the "team" property.
-func (this *SchemaPropertyValue) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) {
- this.ForgeFedTeam = i
-}
-
-// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property.
-func (this *SchemaPropertyValue) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) {
- this.ForgeFedTicketsTrackedBy = i
-}
-
-// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property.
-func (this *SchemaPropertyValue) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) {
- this.ForgeFedTracksTicketsFor = i
-}
-
// SetJSONLDId sets the "id" property.
func (this *SchemaPropertyValue) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i