Regenerate types using proper aliasing

This commit is contained in:
Cory Slep 2019-09-26 20:32:32 +02:00
parent b5a6786f9e
commit e084b904b1
113 changed files with 600 additions and 181 deletions

View File

@ -1,7 +1,7 @@
// Package streams contains constructors and functions necessary for applications
// to serialize, deserialize, and use ActivityStreams types in Go. This
// package is code-generated and subject to the same license as the go-fed
// tool used to generate it.
// Package contains constructors and functions necessary for applications to
// serialize, deserialize, and use ActivityStreams types in Go. This package
// is code-generated and subject to the same license as the go-fed tool used
// to generate it.
//
// This package is useful to three classes of developers: end-user-application
// developers, specification writers creating an ActivityStream Extension, and

View File

@ -164,6 +164,7 @@ func toAliasMap(i interface{}) (m map[string]string) {
switch v := i.(type) {
case string:
// Single entry, no alias.
if ok, http, https := toHttpHttpsFn(v); ok {
m[http] = ""
m[https] = ""
@ -172,6 +173,7 @@ func toAliasMap(i interface{}) (m map[string]string) {
}
case []interface{}:
// Recursively apply.
for _, elem := range v {
r := toAliasMap(elem)
for k, val := range r {
@ -180,6 +182,7 @@ func toAliasMap(i interface{}) (m map[string]string) {
}
case map[string]interface{}:
// Map any aliases.
for k, val := range v {
// Only handle string aliases.
switch conc := val.(type) {

View File

@ -165,7 +165,11 @@ func (this ActivityStreamsAccuracyProperty) LessThan(o vocab.ActivityStreamsAccu
// Name returns the name of this property: "accuracy".
func (this ActivityStreamsAccuracyProperty) Name() string {
return "accuracy"
if len(this.alias) > 0 {
return this.alias + ":" + "accuracy"
} else {
return "accuracy"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream
// Name returns the name of this property: "ActivityStreamsActor".
func (this ActivityStreamsActorPropertyIterator) Name() string {
return "ActivityStreamsActor"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsActor"
} else {
return "ActivityStreamsActor"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4702,9 +4706,13 @@ func (this ActivityStreamsActorProperty) LessThan(o vocab.ActivityStreamsActorPr
return l1 < l2
}
// Name returns the name of this property: "actor".
// Name returns the name of this property ("actor") with any alias.
func (this ActivityStreamsActorProperty) Name() string {
return "actor"
if len(this.alias) > 0 {
return this.alias + ":" + "actor"
} else {
return "actor"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -165,7 +165,11 @@ func (this ActivityStreamsAltitudeProperty) LessThan(o vocab.ActivityStreamsAlti
// Name returns the name of this property: "altitude".
func (this ActivityStreamsAltitudeProperty) Name() string {
return "altitude"
if len(this.alias) > 0 {
return this.alias + ":" + "altitude"
} else {
return "altitude"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream
// Name returns the name of this property: "ActivityStreamsAnyOf".
func (this ActivityStreamsAnyOfPropertyIterator) Name() string {
return "ActivityStreamsAnyOf"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsAnyOf"
} else {
return "ActivityStreamsAnyOf"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4702,9 +4706,13 @@ func (this ActivityStreamsAnyOfProperty) LessThan(o vocab.ActivityStreamsAnyOfPr
return l1 < l2
}
// Name returns the name of this property: "anyOf".
// Name returns the name of this property ("anyOf") with any alias.
func (this ActivityStreamsAnyOfProperty) Name() string {
return "anyOf"
if len(this.alias) > 0 {
return this.alias + ":" + "anyOf"
} else {
return "anyOf"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS
// Name returns the name of this property: "ActivityStreamsAttachment".
func (this ActivityStreamsAttachmentPropertyIterator) Name() string {
return "ActivityStreamsAttachment"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsAttachment"
} else {
return "ActivityStreamsAttachment"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4713,9 +4717,13 @@ func (this ActivityStreamsAttachmentProperty) LessThan(o vocab.ActivityStreamsAt
return l1 < l2
}
// Name returns the name of this property: "attachment".
// Name returns the name of this property ("attachment") with any alias.
func (this ActivityStreamsAttachmentProperty) Name() string {
return "attachment"
if len(this.alias) > 0 {
return this.alias + ":" + "attachment"
} else {
return "attachment"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit
// Name returns the name of this property: "ActivityStreamsAttributedTo".
func (this ActivityStreamsAttributedToPropertyIterator) Name() string {
return "ActivityStreamsAttributedTo"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsAttributedTo"
} else {
return "ActivityStreamsAttributedTo"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4750,9 +4754,13 @@ func (this ActivityStreamsAttributedToProperty) LessThan(o vocab.ActivityStreams
return l1 < l2
}
// Name returns the name of this property: "attributedTo".
// Name returns the name of this property ("attributedTo") with any alias.
func (this ActivityStreamsAttributedToProperty) Name() string {
return "attributedTo"
if len(this.alias) > 0 {
return this.alias + ":" + "attributedTo"
} else {
return "attributedTo"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr
// Name returns the name of this property: "ActivityStreamsAudience".
func (this ActivityStreamsAudiencePropertyIterator) Name() string {
return "ActivityStreamsAudience"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsAudience"
} else {
return "ActivityStreamsAudience"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4711,9 +4715,13 @@ func (this ActivityStreamsAudienceProperty) LessThan(o vocab.ActivityStreamsAudi
return l1 < l2
}
// Name returns the name of this property: "audience".
// Name returns the name of this property ("audience") with any alias.
func (this ActivityStreamsAudienceProperty) Name() string {
return "audience"
if len(this.alias) > 0 {
return this.alias + ":" + "audience"
} else {
return "audience"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1889,7 +1889,11 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB
// Name returns the name of this property: "ActivityStreamsBcc".
func (this ActivityStreamsBccPropertyIterator) Name() string {
return "ActivityStreamsBcc"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsBcc"
} else {
return "ActivityStreamsBcc"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4699,9 +4703,13 @@ func (this ActivityStreamsBccProperty) LessThan(o vocab.ActivityStreamsBccProper
return l1 < l2
}
// Name returns the name of this property: "bcc".
// Name returns the name of this property ("bcc") with any alias.
func (this ActivityStreamsBccProperty) Name() string {
return "bcc"
if len(this.alias) > 0 {
return this.alias + ":" + "bcc"
} else {
return "bcc"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1889,7 +1889,11 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB
// Name returns the name of this property: "ActivityStreamsBto".
func (this ActivityStreamsBtoPropertyIterator) Name() string {
return "ActivityStreamsBto"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsBto"
} else {
return "ActivityStreamsBto"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4699,9 +4703,13 @@ func (this ActivityStreamsBtoProperty) LessThan(o vocab.ActivityStreamsBtoProper
return l1 < l2
}
// Name returns the name of this property: "bto".
// Name returns the name of this property ("bto") with any alias.
func (this ActivityStreamsBtoProperty) Name() string {
return "bto"
if len(this.alias) > 0 {
return this.alias + ":" + "bto"
} else {
return "bto"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1889,7 +1889,11 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc
// Name returns the name of this property: "ActivityStreamsCc".
func (this ActivityStreamsCcPropertyIterator) Name() string {
return "ActivityStreamsCc"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsCc"
} else {
return "ActivityStreamsCc"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4699,9 +4703,13 @@ func (this ActivityStreamsCcProperty) LessThan(o vocab.ActivityStreamsCcProperty
return l1 < l2
}
// Name returns the name of this property: "cc".
// Name returns the name of this property ("cc") with any alias.
func (this ActivityStreamsCcProperty) Name() string {
return "cc"
if len(this.alias) > 0 {
return this.alias + ":" + "cc"
} else {
return "cc"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1951,7 +1951,11 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea
// Name returns the name of this property: "ActivityStreamsClosed".
func (this ActivityStreamsClosedPropertyIterator) Name() string {
return "ActivityStreamsClosed"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsClosed"
} else {
return "ActivityStreamsClosed"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4853,9 +4857,13 @@ func (this ActivityStreamsClosedProperty) LessThan(o vocab.ActivityStreamsClosed
return l1 < l2
}
// Name returns the name of this property: "closed".
// Name returns the name of this property ("closed") with any alias.
func (this ActivityStreamsClosedProperty) Name() string {
return "closed"
if len(this.alias) > 0 {
return this.alias + ":" + "closed"
} else {
return "closed"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -536,7 +536,7 @@ func (this ActivityStreamsContentProperty) LessThan(o vocab.ActivityStreamsConte
return l1 < l2
}
// Name returns the name of this property: "content".
// Name returns the name of this property ("content") with any alias.
func (this ActivityStreamsContentProperty) Name() string {
if this.Len() == 1 && this.At(0).IsRDFLangString() {
return "contentMap"

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre
// Name returns the name of this property: "ActivityStreamsContext".
func (this ActivityStreamsContextPropertyIterator) Name() string {
return "ActivityStreamsContext"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsContext"
} else {
return "ActivityStreamsContext"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4711,9 +4715,13 @@ func (this ActivityStreamsContextProperty) LessThan(o vocab.ActivityStreamsConte
return l1 < l2
}
// Name returns the name of this property: "context".
// Name returns the name of this property ("context") with any alias.
func (this ActivityStreamsContextProperty) Name() string {
return "context"
if len(this.alias) > 0 {
return this.alias + ":" + "context"
} else {
return "context"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -273,7 +273,11 @@ func (this ActivityStreamsCurrentProperty) LessThan(o vocab.ActivityStreamsCurre
// Name returns the name of this property: "current".
func (this ActivityStreamsCurrentProperty) Name() string {
return "current"
if len(this.alias) > 0 {
return this.alias + ":" + "current"
} else {
return "current"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -166,7 +166,11 @@ func (this ActivityStreamsDeletedProperty) LessThan(o vocab.ActivityStreamsDelet
// Name returns the name of this property: "deleted".
func (this ActivityStreamsDeletedProperty) Name() string {
return "deleted"
if len(this.alias) > 0 {
return this.alias + ":" + "deleted"
} else {
return "deleted"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -1893,7 +1893,11 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes
// Name returns the name of this property: "describes".
func (this ActivityStreamsDescribesProperty) Name() string {
return "describes"
if len(this.alias) > 0 {
return this.alias + ":" + "describes"
} else {
return "describes"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -166,7 +166,11 @@ func (this ActivityStreamsDurationProperty) LessThan(o vocab.ActivityStreamsDura
// Name returns the name of this property: "duration".
func (this ActivityStreamsDurationProperty) Name() string {
return "duration"
if len(this.alias) > 0 {
return this.alias + ":" + "duration"
} else {
return "duration"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -166,7 +166,11 @@ func (this ActivityStreamsEndTimeProperty) LessThan(o vocab.ActivityStreamsEndTi
// Name returns the name of this property: "endTime".
func (this ActivityStreamsEndTimeProperty) Name() string {
return "endTime"
if len(this.alias) > 0 {
return this.alias + ":" + "endTime"
} else {
return "endTime"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -273,7 +273,11 @@ func (this ActivityStreamsFirstProperty) LessThan(o vocab.ActivityStreamsFirstPr
// Name returns the name of this property: "first".
func (this ActivityStreamsFirstProperty) Name() string {
return "first"
if len(this.alias) > 0 {
return this.alias + ":" + "first"
} else {
return "first"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -274,7 +274,11 @@ func (this ActivityStreamsFollowersProperty) LessThan(o vocab.ActivityStreamsFol
// Name returns the name of this property: "followers".
func (this ActivityStreamsFollowersProperty) Name() string {
return "followers"
if len(this.alias) > 0 {
return this.alias + ":" + "followers"
} else {
return "followers"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -274,7 +274,11 @@ func (this ActivityStreamsFollowingProperty) LessThan(o vocab.ActivityStreamsFol
// Name returns the name of this property: "following".
func (this ActivityStreamsFollowingProperty) Name() string {
return "following"
if len(this.alias) > 0 {
return this.alias + ":" + "following"
} else {
return "following"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -1856,7 +1856,11 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS
// Name returns the name of this property: "ActivityStreamsFormerType".
func (this ActivityStreamsFormerTypePropertyIterator) Name() string {
return "ActivityStreamsFormerType"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsFormerType"
} else {
return "ActivityStreamsFormerType"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4631,9 +4635,13 @@ func (this ActivityStreamsFormerTypeProperty) LessThan(o vocab.ActivityStreamsFo
return l1 < l2
}
// Name returns the name of this property: "formerType".
// Name returns the name of this property ("formerType") with any alias.
func (this ActivityStreamsFormerTypeProperty) Name() string {
return "formerType"
if len(this.alias) > 0 {
return this.alias + ":" + "formerType"
} else {
return "formerType"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt
// Name returns the name of this property: "ActivityStreamsGenerator".
func (this ActivityStreamsGeneratorPropertyIterator) Name() string {
return "ActivityStreamsGenerator"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsGenerator"
} else {
return "ActivityStreamsGenerator"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4711,9 +4715,13 @@ func (this ActivityStreamsGeneratorProperty) LessThan(o vocab.ActivityStreamsGen
return l1 < l2
}
// Name returns the name of this property: "generator".
// Name returns the name of this property ("generator") with any alias.
func (this ActivityStreamsGeneratorProperty) Name() string {
return "generator"
if len(this.alias) > 0 {
return this.alias + ":" + "generator"
} else {
return "generator"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -166,7 +166,11 @@ func (this ActivityStreamsHeightProperty) LessThan(o vocab.ActivityStreamsHeight
// Name returns the name of this property: "height".
func (this ActivityStreamsHeightProperty) Name() string {
return "height"
if len(this.alias) > 0 {
return this.alias + ":" + "height"
} else {
return "height"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -146,7 +146,11 @@ func (this ActivityStreamsHrefProperty) LessThan(o vocab.ActivityStreamsHrefProp
// Name returns the name of this property: "href".
func (this ActivityStreamsHrefProperty) Name() string {
return "href"
if len(this.alias) > 0 {
return this.alias + ":" + "href"
} else {
return "href"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -165,7 +165,11 @@ func (this ActivityStreamsHreflangProperty) LessThan(o vocab.ActivityStreamsHref
// Name returns the name of this property: "hreflang".
func (this ActivityStreamsHreflangProperty) Name() string {
return "hreflang"
if len(this.alias) > 0 {
return this.alias + ":" + "hreflang"
} else {
return "hreflang"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -221,7 +221,11 @@ func (this ActivityStreamsIconPropertyIterator) LessThan(o vocab.ActivityStreams
// Name returns the name of this property: "ActivityStreamsIcon".
func (this ActivityStreamsIconPropertyIterator) Name() string {
return "ActivityStreamsIcon"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsIcon"
} else {
return "ActivityStreamsIcon"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -629,9 +633,13 @@ func (this ActivityStreamsIconProperty) LessThan(o vocab.ActivityStreamsIconProp
return l1 < l2
}
// Name returns the name of this property: "icon".
// Name returns the name of this property ("icon") with any alias.
func (this ActivityStreamsIconProperty) Name() string {
return "icon"
if len(this.alias) > 0 {
return this.alias + ":" + "icon"
} else {
return "icon"
}
}
// PrependActivityStreamsImage prepends a Image value to the front of a list of

View File

@ -146,7 +146,11 @@ func (this ActivityStreamsIdProperty) LessThan(o vocab.ActivityStreamsIdProperty
// Name returns the name of this property: "id".
func (this ActivityStreamsIdProperty) Name() string {
return "id"
if len(this.alias) > 0 {
return this.alias + ":" + "id"
} else {
return "id"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -221,7 +221,11 @@ func (this ActivityStreamsImagePropertyIterator) LessThan(o vocab.ActivityStream
// Name returns the name of this property: "ActivityStreamsImage".
func (this ActivityStreamsImagePropertyIterator) Name() string {
return "ActivityStreamsImage"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsImage"
} else {
return "ActivityStreamsImage"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -629,9 +633,13 @@ func (this ActivityStreamsImageProperty) LessThan(o vocab.ActivityStreamsImagePr
return l1 < l2
}
// Name returns the name of this property: "image".
// Name returns the name of this property ("image") with any alias.
func (this ActivityStreamsImageProperty) Name() string {
return "image"
if len(this.alias) > 0 {
return this.alias + ":" + "image"
} else {
return "image"
}
}
// PrependActivityStreamsImage prepends a Image value to the front of a list of

View File

@ -208,7 +208,11 @@ func (this ActivityStreamsInboxProperty) LessThan(o vocab.ActivityStreamsInboxPr
// Name returns the name of this property: "inbox".
func (this ActivityStreamsInboxProperty) Name() string {
return "inbox"
if len(this.alias) > 0 {
return this.alias + ":" + "inbox"
} else {
return "inbox"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt
// Name returns the name of this property: "ActivityStreamsInReplyTo".
func (this ActivityStreamsInReplyToPropertyIterator) Name() string {
return "ActivityStreamsInReplyTo"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsInReplyTo"
} else {
return "ActivityStreamsInReplyTo"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4711,9 +4715,13 @@ func (this ActivityStreamsInReplyToProperty) LessThan(o vocab.ActivityStreamsInR
return l1 < l2
}
// Name returns the name of this property: "inReplyTo".
// Name returns the name of this property ("inReplyTo") with any alias.
func (this ActivityStreamsInReplyToProperty) Name() string {
return "inReplyTo"
if len(this.alias) > 0 {
return this.alias + ":" + "inReplyTo"
} else {
return "inReplyTo"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS
// Name returns the name of this property: "ActivityStreamsInstrument".
func (this ActivityStreamsInstrumentPropertyIterator) Name() string {
return "ActivityStreamsInstrument"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsInstrument"
} else {
return "ActivityStreamsInstrument"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4713,9 +4717,13 @@ func (this ActivityStreamsInstrumentProperty) LessThan(o vocab.ActivityStreamsIn
return l1 < l2
}
// Name returns the name of this property: "instrument".
// Name returns the name of this property ("instrument") with any alias.
func (this ActivityStreamsInstrumentProperty) Name() string {
return "instrument"
if len(this.alias) > 0 {
return this.alias + ":" + "instrument"
} else {
return "instrument"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream
// Name returns the name of this property: "ActivityStreamsItems".
func (this ActivityStreamsItemsPropertyIterator) Name() string {
return "ActivityStreamsItems"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsItems"
} else {
return "ActivityStreamsItems"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4702,9 +4706,13 @@ func (this ActivityStreamsItemsProperty) LessThan(o vocab.ActivityStreamsItemsPr
return l1 < l2
}
// Name returns the name of this property: "items".
// Name returns the name of this property ("items") with any alias.
func (this ActivityStreamsItemsProperty) Name() string {
return "items"
if len(this.alias) > 0 {
return this.alias + ":" + "items"
} else {
return "items"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -273,7 +273,11 @@ func (this ActivityStreamsLastProperty) LessThan(o vocab.ActivityStreamsLastProp
// Name returns the name of this property: "last".
func (this ActivityStreamsLastProperty) Name() string {
return "last"
if len(this.alias) > 0 {
return this.alias + ":" + "last"
} else {
return "last"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -165,7 +165,11 @@ func (this ActivityStreamsLatitudeProperty) LessThan(o vocab.ActivityStreamsLati
// Name returns the name of this property: "latitude".
func (this ActivityStreamsLatitudeProperty) Name() string {
return "latitude"
if len(this.alias) > 0 {
return this.alias + ":" + "latitude"
} else {
return "latitude"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -274,7 +274,11 @@ func (this ActivityStreamsLikedProperty) LessThan(o vocab.ActivityStreamsLikedPr
// Name returns the name of this property: "liked".
func (this ActivityStreamsLikedProperty) Name() string {
return "liked"
if len(this.alias) > 0 {
return this.alias + ":" + "liked"
} else {
return "liked"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -274,7 +274,11 @@ func (this ActivityStreamsLikesProperty) LessThan(o vocab.ActivityStreamsLikesPr
// Name returns the name of this property: "likes".
func (this ActivityStreamsLikesProperty) Name() string {
return "likes"
if len(this.alias) > 0 {
return this.alias + ":" + "likes"
} else {
return "likes"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr
// Name returns the name of this property: "ActivityStreamsLocation".
func (this ActivityStreamsLocationPropertyIterator) Name() string {
return "ActivityStreamsLocation"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsLocation"
} else {
return "ActivityStreamsLocation"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4711,9 +4715,13 @@ func (this ActivityStreamsLocationProperty) LessThan(o vocab.ActivityStreamsLoca
return l1 < l2
}
// Name returns the name of this property: "location".
// Name returns the name of this property ("location") with any alias.
func (this ActivityStreamsLocationProperty) Name() string {
return "location"
if len(this.alias) > 0 {
return this.alias + ":" + "location"
} else {
return "location"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -165,7 +165,11 @@ func (this ActivityStreamsLongitudeProperty) LessThan(o vocab.ActivityStreamsLon
// Name returns the name of this property: "longitude".
func (this ActivityStreamsLongitudeProperty) Name() string {
return "longitude"
if len(this.alias) > 0 {
return this.alias + ":" + "longitude"
} else {
return "longitude"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -165,7 +165,11 @@ func (this ActivityStreamsMediaTypeProperty) LessThan(o vocab.ActivityStreamsMed
// Name returns the name of this property: "mediaType".
func (this ActivityStreamsMediaTypeProperty) Name() string {
return "mediaType"
if len(this.alias) > 0 {
return this.alias + ":" + "mediaType"
} else {
return "mediaType"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -536,7 +536,7 @@ func (this ActivityStreamsNameProperty) LessThan(o vocab.ActivityStreamsNameProp
return l1 < l2
}
// Name returns the name of this property: "name".
// Name returns the name of this property ("name") with any alias.
func (this ActivityStreamsNameProperty) Name() string {
if this.Len() == 1 && this.At(0).IsRDFLangString() {
return "nameMap"

View File

@ -273,7 +273,11 @@ func (this ActivityStreamsNextProperty) LessThan(o vocab.ActivityStreamsNextProp
// Name returns the name of this property: "next".
func (this ActivityStreamsNextProperty) Name() string {
return "next"
if len(this.alias) > 0 {
return this.alias + ":" + "next"
} else {
return "next"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea
// Name returns the name of this property: "ActivityStreamsObject".
func (this ActivityStreamsObjectPropertyIterator) Name() string {
return "ActivityStreamsObject"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsObject"
} else {
return "ActivityStreamsObject"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4702,9 +4706,13 @@ func (this ActivityStreamsObjectProperty) LessThan(o vocab.ActivityStreamsObject
return l1 < l2
}
// Name returns the name of this property: "object".
// Name returns the name of this property ("object") with any alias.
func (this ActivityStreamsObjectProperty) Name() string {
return "object"
if len(this.alias) > 0 {
return this.alias + ":" + "object"
} else {
return "object"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream
// Name returns the name of this property: "ActivityStreamsOneOf".
func (this ActivityStreamsOneOfPropertyIterator) Name() string {
return "ActivityStreamsOneOf"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsOneOf"
} else {
return "ActivityStreamsOneOf"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4702,9 +4706,13 @@ func (this ActivityStreamsOneOfProperty) LessThan(o vocab.ActivityStreamsOneOfPr
return l1 < l2
}
// Name returns the name of this property: "oneOf".
// Name returns the name of this property ("oneOf") with any alias.
func (this ActivityStreamsOneOfProperty) Name() string {
return "oneOf"
if len(this.alias) > 0 {
return this.alias + ":" + "oneOf"
} else {
return "oneOf"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit
// Name returns the name of this property: "ActivityStreamsOrderedItems".
func (this ActivityStreamsOrderedItemsPropertyIterator) Name() string {
return "ActivityStreamsOrderedItems"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsOrderedItems"
} else {
return "ActivityStreamsOrderedItems"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4750,9 +4754,13 @@ func (this ActivityStreamsOrderedItemsProperty) LessThan(o vocab.ActivityStreams
return l1 < l2
}
// Name returns the name of this property: "orderedItems".
// Name returns the name of this property ("orderedItems") with any alias.
func (this ActivityStreamsOrderedItemsProperty) Name() string {
return "orderedItems"
if len(this.alias) > 0 {
return this.alias + ":" + "orderedItems"
} else {
return "orderedItems"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea
// Name returns the name of this property: "ActivityStreamsOrigin".
func (this ActivityStreamsOriginPropertyIterator) Name() string {
return "ActivityStreamsOrigin"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsOrigin"
} else {
return "ActivityStreamsOrigin"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4702,9 +4706,13 @@ func (this ActivityStreamsOriginProperty) LessThan(o vocab.ActivityStreamsOrigin
return l1 < l2
}
// Name returns the name of this property: "origin".
// Name returns the name of this property ("origin") with any alias.
func (this ActivityStreamsOriginProperty) Name() string {
return "origin"
if len(this.alias) > 0 {
return this.alias + ":" + "origin"
} else {
return "origin"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -208,7 +208,11 @@ func (this ActivityStreamsOutboxProperty) LessThan(o vocab.ActivityStreamsOutbox
// Name returns the name of this property: "outbox".
func (this ActivityStreamsOutboxProperty) Name() string {
return "outbox"
if len(this.alias) > 0 {
return this.alias + ":" + "outbox"
} else {
return "outbox"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -340,7 +340,11 @@ func (this ActivityStreamsPartOfProperty) LessThan(o vocab.ActivityStreamsPartOf
// Name returns the name of this property: "partOf".
func (this ActivityStreamsPartOfProperty) Name() string {
return "partOf"
if len(this.alias) > 0 {
return this.alias + ":" + "partOf"
} else {
return "partOf"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -273,7 +273,11 @@ func (this ActivityStreamsPrevProperty) LessThan(o vocab.ActivityStreamsPrevProp
// Name returns the name of this property: "prev".
func (this ActivityStreamsPrevProperty) Name() string {
return "prev"
if len(this.alias) > 0 {
return this.alias + ":" + "prev"
} else {
return "prev"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre
// Name returns the name of this property: "ActivityStreamsPreview".
func (this ActivityStreamsPreviewPropertyIterator) Name() string {
return "ActivityStreamsPreview"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsPreview"
} else {
return "ActivityStreamsPreview"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4711,9 +4715,13 @@ func (this ActivityStreamsPreviewProperty) LessThan(o vocab.ActivityStreamsPrevi
return l1 < l2
}
// Name returns the name of this property: "preview".
// Name returns the name of this property ("preview") with any alias.
func (this ActivityStreamsPreviewProperty) Name() string {
return "preview"
if len(this.alias) > 0 {
return this.alias + ":" + "preview"
} else {
return "preview"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -166,7 +166,11 @@ func (this ActivityStreamsPublishedProperty) LessThan(o vocab.ActivityStreamsPub
// Name returns the name of this property: "published".
func (this ActivityStreamsPublishedProperty) Name() string {
return "published"
if len(this.alias) > 0 {
return this.alias + ":" + "published"
} else {
return "published"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -165,7 +165,11 @@ func (this ActivityStreamsRadiusProperty) LessThan(o vocab.ActivityStreamsRadius
// Name returns the name of this property: "radius".
func (this ActivityStreamsRadiusProperty) Name() string {
return "radius"
if len(this.alias) > 0 {
return this.alias + ":" + "radius"
} else {
return "radius"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -149,7 +149,11 @@ func (this ActivityStreamsRelPropertyIterator) LessThan(o vocab.ActivityStreamsR
// Name returns the name of this property: "ActivityStreamsRel".
func (this ActivityStreamsRelPropertyIterator) Name() string {
return "ActivityStreamsRel"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsRel"
} else {
return "ActivityStreamsRel"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -421,9 +425,13 @@ func (this ActivityStreamsRelProperty) LessThan(o vocab.ActivityStreamsRelProper
return l1 < l2
}
// Name returns the name of this property: "rel".
// Name returns the name of this property ("rel") with any alias.
func (this ActivityStreamsRelProperty) Name() string {
return "rel"
if len(this.alias) > 0 {
return this.alias + ":" + "rel"
} else {
return "rel"
}
}
// PrependIRI prepends an IRI value to the front of a list of the property "rel".

View File

@ -1826,7 +1826,11 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit
// Name returns the name of this property: "ActivityStreamsRelationship".
func (this ActivityStreamsRelationshipPropertyIterator) Name() string {
return "ActivityStreamsRelationship"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsRelationship"
} else {
return "ActivityStreamsRelationship"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4592,9 +4596,13 @@ func (this ActivityStreamsRelationshipProperty) LessThan(o vocab.ActivityStreams
return l1 < l2
}
// Name returns the name of this property: "relationship".
// Name returns the name of this property ("relationship") with any alias.
func (this ActivityStreamsRelationshipProperty) Name() string {
return "relationship"
if len(this.alias) > 0 {
return this.alias + ":" + "relationship"
} else {
return "relationship"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -274,7 +274,11 @@ func (this ActivityStreamsRepliesProperty) LessThan(o vocab.ActivityStreamsRepli
// Name returns the name of this property: "replies".
func (this ActivityStreamsRepliesProperty) Name() string {
return "replies"
if len(this.alias) > 0 {
return this.alias + ":" + "replies"
} else {
return "replies"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea
// Name returns the name of this property: "ActivityStreamsResult".
func (this ActivityStreamsResultPropertyIterator) Name() string {
return "ActivityStreamsResult"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsResult"
} else {
return "ActivityStreamsResult"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4702,9 +4706,13 @@ func (this ActivityStreamsResultProperty) LessThan(o vocab.ActivityStreamsResult
return l1 < l2
}
// Name returns the name of this property: "result".
// Name returns the name of this property ("result") with any alias.
func (this ActivityStreamsResultProperty) Name() string {
return "result"
if len(this.alias) > 0 {
return this.alias + ":" + "result"
} else {
return "result"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -274,7 +274,11 @@ func (this ActivityStreamsSharesProperty) LessThan(o vocab.ActivityStreamsShares
// Name returns the name of this property: "shares".
func (this ActivityStreamsSharesProperty) Name() string {
return "shares"
if len(this.alias) > 0 {
return this.alias + ":" + "shares"
} else {
return "shares"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -166,7 +166,11 @@ func (this ActivityStreamsStartIndexProperty) LessThan(o vocab.ActivityStreamsSt
// Name returns the name of this property: "startIndex".
func (this ActivityStreamsStartIndexProperty) Name() string {
return "startIndex"
if len(this.alias) > 0 {
return this.alias + ":" + "startIndex"
} else {
return "startIndex"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -166,7 +166,11 @@ func (this ActivityStreamsStartTimeProperty) LessThan(o vocab.ActivityStreamsSta
// Name returns the name of this property: "startTime".
func (this ActivityStreamsStartTimeProperty) Name() string {
return "startTime"
if len(this.alias) > 0 {
return this.alias + ":" + "startTime"
} else {
return "startTime"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -256,7 +256,11 @@ func (this ActivityStreamsStreamsPropertyIterator) LessThan(o vocab.ActivityStre
// Name returns the name of this property: "ActivityStreamsStreams".
func (this ActivityStreamsStreamsPropertyIterator) Name() string {
return "ActivityStreamsStreams"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsStreams"
} else {
return "ActivityStreamsStreams"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -714,9 +718,13 @@ func (this ActivityStreamsStreamsProperty) LessThan(o vocab.ActivityStreamsStrea
return l1 < l2
}
// Name returns the name of this property: "streams".
// Name returns the name of this property ("streams") with any alias.
func (this ActivityStreamsStreamsProperty) Name() string {
return "streams"
if len(this.alias) > 0 {
return this.alias + ":" + "streams"
} else {
return "streams"
}
}
// PrependActivityStreamsCollection prepends a Collection value to the front of a

View File

@ -1959,7 +1959,11 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje
// Name returns the name of this property: "subject".
func (this ActivityStreamsSubjectProperty) Name() string {
return "subject"
if len(this.alias) > 0 {
return this.alias + ":" + "subject"
} else {
return "subject"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -536,7 +536,7 @@ func (this ActivityStreamsSummaryProperty) LessThan(o vocab.ActivityStreamsSumma
return l1 < l2
}
// Name returns the name of this property: "summary".
// Name returns the name of this property ("summary") with any alias.
func (this ActivityStreamsSummaryProperty) Name() string {
if this.Len() == 1 && this.At(0).IsRDFLangString() {
return "summaryMap"

View File

@ -1889,7 +1889,11 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT
// Name returns the name of this property: "ActivityStreamsTag".
func (this ActivityStreamsTagPropertyIterator) Name() string {
return "ActivityStreamsTag"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsTag"
} else {
return "ActivityStreamsTag"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4699,9 +4703,13 @@ func (this ActivityStreamsTagProperty) LessThan(o vocab.ActivityStreamsTagProper
return l1 < l2
}
// Name returns the name of this property: "tag".
// Name returns the name of this property ("tag") with any alias.
func (this ActivityStreamsTagProperty) Name() string {
return "tag"
if len(this.alias) > 0 {
return this.alias + ":" + "tag"
} else {
return "tag"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1890,7 +1890,11 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea
// Name returns the name of this property: "ActivityStreamsTarget".
func (this ActivityStreamsTargetPropertyIterator) Name() string {
return "ActivityStreamsTarget"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsTarget"
} else {
return "ActivityStreamsTarget"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4702,9 +4706,13 @@ func (this ActivityStreamsTargetProperty) LessThan(o vocab.ActivityStreamsTarget
return l1 < l2
}
// Name returns the name of this property: "target".
// Name returns the name of this property ("target") with any alias.
func (this ActivityStreamsTargetProperty) Name() string {
return "target"
if len(this.alias) > 0 {
return this.alias + ":" + "target"
} else {
return "target"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -1889,7 +1889,11 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo
// Name returns the name of this property: "ActivityStreamsTo".
func (this ActivityStreamsToPropertyIterator) Name() string {
return "ActivityStreamsTo"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsTo"
} else {
return "ActivityStreamsTo"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -4699,9 +4703,13 @@ func (this ActivityStreamsToProperty) LessThan(o vocab.ActivityStreamsToProperty
return l1 < l2
}
// Name returns the name of this property: "to".
// Name returns the name of this property ("to") with any alias.
func (this ActivityStreamsToProperty) Name() string {
return "to"
if len(this.alias) > 0 {
return this.alias + ":" + "to"
} else {
return "to"
}
}
// PrependActivityStreamsAccept prepends a Accept value to the front of a list of

View File

@ -166,7 +166,11 @@ func (this ActivityStreamsTotalItemsProperty) LessThan(o vocab.ActivityStreamsTo
// Name returns the name of this property: "totalItems".
func (this ActivityStreamsTotalItemsProperty) Name() string {
return "totalItems"
if len(this.alias) > 0 {
return this.alias + ":" + "totalItems"
} else {
return "totalItems"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -156,7 +156,11 @@ func (this ActivityStreamsTypePropertyIterator) LessThan(o vocab.ActivityStreams
// Name returns the name of this property: "ActivityStreamsType".
func (this ActivityStreamsTypePropertyIterator) Name() string {
return "ActivityStreamsType"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsType"
} else {
return "ActivityStreamsType"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -466,9 +470,13 @@ func (this ActivityStreamsTypeProperty) LessThan(o vocab.ActivityStreamsTypeProp
return l1 < l2
}
// Name returns the name of this property: "type".
// Name returns the name of this property ("type") with any alias.
func (this ActivityStreamsTypeProperty) Name() string {
return "type"
if len(this.alias) > 0 {
return this.alias + ":" + "type"
} else {
return "type"
}
}
// PrependIRI prepends an IRI value to the front of a list of the property "type".

View File

@ -171,7 +171,11 @@ func (this ActivityStreamsUnitsProperty) LessThan(o vocab.ActivityStreamsUnitsPr
// Name returns the name of this property: "units".
func (this ActivityStreamsUnitsProperty) Name() string {
return "units"
if len(this.alias) > 0 {
return this.alias + ":" + "units"
} else {
return "units"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -166,7 +166,11 @@ func (this ActivityStreamsUpdatedProperty) LessThan(o vocab.ActivityStreamsUpdat
// Name returns the name of this property: "updated".
func (this ActivityStreamsUpdatedProperty) Name() string {
return "updated"
if len(this.alias) > 0 {
return this.alias + ":" + "updated"
} else {
return "updated"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -200,7 +200,11 @@ func (this ActivityStreamsUrlPropertyIterator) LessThan(o vocab.ActivityStreamsU
// Name returns the name of this property: "ActivityStreamsUrl".
func (this ActivityStreamsUrlPropertyIterator) Name() string {
return "ActivityStreamsUrl"
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsUrl"
} else {
return "ActivityStreamsUrl"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -601,9 +605,13 @@ func (this ActivityStreamsUrlProperty) LessThan(o vocab.ActivityStreamsUrlProper
return l1 < l2
}
// Name returns the name of this property: "url".
// Name returns the name of this property ("url") with any alias.
func (this ActivityStreamsUrlProperty) Name() string {
return "url"
if len(this.alias) > 0 {
return this.alias + ":" + "url"
} else {
return "url"
}
}
// PrependActivityStreamsLink prepends a Link value to the front of a list of the

View File

@ -166,7 +166,11 @@ func (this ActivityStreamsWidthProperty) LessThan(o vocab.ActivityStreamsWidthPr
// Name returns the name of this property: "width".
func (this ActivityStreamsWidthProperty) Name() string {
return "width"
if len(this.alias) > 0 {
return this.alias + ":" + "width"
} else {
return "width"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -146,7 +146,11 @@ func (this W3IDSecurityV1OwnerProperty) LessThan(o vocab.W3IDSecurityV1OwnerProp
// Name returns the name of this property: "owner".
func (this W3IDSecurityV1OwnerProperty) Name() string {
return "owner"
if len(this.alias) > 0 {
return this.alias + ":" + "owner"
} else {
return "owner"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -161,7 +161,11 @@ func (this W3IDSecurityV1PublicKeyPropertyIterator) LessThan(o vocab.W3IDSecurit
// Name returns the name of this property: "W3IDSecurityV1PublicKey".
func (this W3IDSecurityV1PublicKeyPropertyIterator) Name() string {
return "W3IDSecurityV1PublicKey"
if len(this.alias) > 0 {
return this.alias + ":" + "W3IDSecurityV1PublicKey"
} else {
return "W3IDSecurityV1PublicKey"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
@ -479,9 +483,13 @@ func (this W3IDSecurityV1PublicKeyProperty) LessThan(o vocab.W3IDSecurityV1Publi
return l1 < l2
}
// Name returns the name of this property: "publicKey".
// Name returns the name of this property ("publicKey") with any alias.
func (this W3IDSecurityV1PublicKeyProperty) Name() string {
return "publicKey"
if len(this.alias) > 0 {
return this.alias + ":" + "publicKey"
} else {
return "publicKey"
}
}
// PrependIRI prepends an IRI value to the front of a list of the property

View File

@ -166,7 +166,11 @@ func (this W3IDSecurityV1PublicKeyPemProperty) LessThan(o vocab.W3IDSecurityV1Pu
// Name returns the name of this property: "publicKeyPem".
func (this W3IDSecurityV1PublicKeyPemProperty) Name() string {
return "publicKeyPem"
if len(this.alias) > 0 {
return this.alias + ":" + "publicKeyPem"
} else {
return "publicKeyPem"
}
}
// Serialize converts this into an interface representation suitable for

View File

@ -353,7 +353,7 @@ func IsOrExtendsPublicKey(other vocab.Type) bool {
// NewW3IDSecurityV1PublicKey creates a new PublicKey type
func NewW3IDSecurityV1PublicKey() *W3IDSecurityV1PublicKey {
typeProp := typePropertyConstructor()
typeProp.AppendXMLSchemaString("PublicKey")
typeProp.AppendXMLSchemaString("widsv" + ":" + "PublicKey")
return &W3IDSecurityV1PublicKey{
ActivityStreamsType: typeProp,
alias: "widsv",

View File

@ -1205,7 +1205,7 @@ type ActivityStreamsActorProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsActorProperty) bool
// Name returns the name of this property: "actor".
// Name returns the name of this property ("actor") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "actor". Invalidates all iterators.

View File

@ -1186,7 +1186,7 @@ type ActivityStreamsAnyOfProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsAnyOfProperty) bool
// Name returns the name of this property: "anyOf".
// Name returns the name of this property ("anyOf") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "anyOf". Invalidates all iterators.

View File

@ -1188,7 +1188,7 @@ type ActivityStreamsAttachmentProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsAttachmentProperty) bool
// Name returns the name of this property: "attachment".
// Name returns the name of this property ("attachment") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "attachment". Invalidates all iterators.

View File

@ -1204,7 +1204,7 @@ type ActivityStreamsAttributedToProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsAttributedToProperty) bool
// Name returns the name of this property: "attributedTo".
// Name returns the name of this property ("attributedTo") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "attributedTo". Invalidates all iterators.

View File

@ -1187,7 +1187,7 @@ type ActivityStreamsAudienceProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsAudienceProperty) bool
// Name returns the name of this property: "audience".
// Name returns the name of this property ("audience") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "audience". Invalidates all iterators.

View File

@ -1176,7 +1176,7 @@ type ActivityStreamsBccProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsBccProperty) bool
// Name returns the name of this property: "bcc".
// Name returns the name of this property ("bcc") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "bcc". Invalidates all iterators.

View File

@ -1176,7 +1176,7 @@ type ActivityStreamsBtoProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsBtoProperty) bool
// Name returns the name of this property: "bto".
// Name returns the name of this property ("bto") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "bto". Invalidates all iterators.

View File

@ -1176,7 +1176,7 @@ type ActivityStreamsCcProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsCcProperty) bool
// Name returns the name of this property: "cc".
// Name returns the name of this property ("cc") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "cc". Invalidates all iterators.

View File

@ -1216,7 +1216,7 @@ type ActivityStreamsClosedProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsClosedProperty) bool
// Name returns the name of this property: "closed".
// Name returns the name of this property ("closed") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "closed". Invalidates all iterators.

View File

@ -168,7 +168,7 @@ type ActivityStreamsContentProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsContentProperty) bool
// Name returns the name of this property: "content".
// Name returns the name of this property ("content") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "content".

View File

@ -1193,7 +1193,7 @@ type ActivityStreamsContextProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsContextProperty) bool
// Name returns the name of this property: "context".
// Name returns the name of this property ("context") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "context". Invalidates all iterators.

View File

@ -1165,7 +1165,7 @@ type ActivityStreamsFormerTypeProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsFormerTypeProperty) bool
// Name returns the name of this property: "formerType".
// Name returns the name of this property ("formerType") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "formerType". Invalidates all iterators.

View File

@ -1186,7 +1186,7 @@ type ActivityStreamsGeneratorProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsGeneratorProperty) bool
// Name returns the name of this property: "generator".
// Name returns the name of this property ("generator") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "generator". Invalidates all iterators.

View File

@ -193,7 +193,7 @@ type ActivityStreamsIconProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsIconProperty) bool
// Name returns the name of this property: "icon".
// Name returns the name of this property ("icon") with any alias.
Name() string
// PrependActivityStreamsImage prepends a Image value to the front of a
// list of the property "icon". Invalidates all iterators.

View File

@ -186,7 +186,7 @@ type ActivityStreamsImageProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsImageProperty) bool
// Name returns the name of this property: "image".
// Name returns the name of this property ("image") with any alias.
Name() string
// PrependActivityStreamsImage prepends a Image value to the front of a
// list of the property "image". Invalidates all iterators.

View File

@ -1195,7 +1195,7 @@ type ActivityStreamsInReplyToProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsInReplyToProperty) bool
// Name returns the name of this property: "inReplyTo".
// Name returns the name of this property ("inReplyTo") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "inReplyTo". Invalidates all iterators.

View File

@ -1192,7 +1192,7 @@ type ActivityStreamsInstrumentProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsInstrumentProperty) bool
// Name returns the name of this property: "instrument".
// Name returns the name of this property ("instrument") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "instrument". Invalidates all iterators.

View File

@ -1186,7 +1186,7 @@ type ActivityStreamsItemsProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsItemsProperty) bool
// Name returns the name of this property: "items".
// Name returns the name of this property ("items") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "items". Invalidates all iterators.

View File

@ -1189,7 +1189,7 @@ type ActivityStreamsLocationProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsLocationProperty) bool
// Name returns the name of this property: "location".
// Name returns the name of this property ("location") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "location". Invalidates all iterators.

View File

@ -157,7 +157,7 @@ type ActivityStreamsNameProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsNameProperty) bool
// Name returns the name of this property: "name".
// Name returns the name of this property ("name") with any alias.
Name() string
// PrependIRI prepends an IRI value to the front of a list of the property
// "name".

View File

@ -1204,7 +1204,7 @@ type ActivityStreamsObjectProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsObjectProperty) bool
// Name returns the name of this property: "object".
// Name returns the name of this property ("object") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "object". Invalidates all iterators.

View File

@ -1186,7 +1186,7 @@ type ActivityStreamsOneOfProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsOneOfProperty) bool
// Name returns the name of this property: "oneOf".
// Name returns the name of this property ("oneOf") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "oneOf". Invalidates all iterators.

View File

@ -1194,7 +1194,7 @@ type ActivityStreamsOrderedItemsProperty interface {
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsOrderedItemsProperty) bool
// Name returns the name of this property: "orderedItems".
// Name returns the name of this property ("orderedItems") with any alias.
Name() string
// PrependActivityStreamsAccept prepends a Accept value to the front of a
// list of the property "orderedItems". Invalidates all iterators.

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