func (this ForgeFedFilesRemovedProperty) End() vocab.ForgeFedFilesRemovedPropertyIterator {
	return nil
}
End returns beyond-the-last iterator, which is nil. Can be used with the
iterator's Next method and this property's Begin method to iterate from
front to back through all values.
package propertyfilesremoved
import (
	"fmt"
	string1 "github.com/go-fed/activity/streams/values/string"
	vocab "github.com/go-fed/activity/streams/vocab"
	"net/url"
)
type ForgeFedFilesRemovedPropertyIterator struct {
	xmlschemaStringMember string
	hasStringMember       bool
	unknown               interface{}
	iri                   *url.URL
	alias                 string
	myIdx                 int
	parent                vocab.ForgeFedFilesRemovedProperty
}
func NewForgeFedFilesRemovedPropertyIterator() *ForgeFedFilesRemovedPropertyIterator {
	return &ForgeFedFilesRemovedPropertyIterator{alias: ""}
}
func deserializeForgeFedFilesRemovedPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedFilesRemovedPropertyIterator, error) {
	alias := ""
	if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok {
		alias = a
	}
	if s, ok := i.(string); ok {
		u, err := url.Parse(s)
		if err == nil && len(u.Scheme) > 0 {
			this := &ForgeFedFilesRemovedPropertyIterator{
				alias: alias,
				iri:   u,
			}
			return this, nil
		}
	}
	if v, err := string1.DeserializeString(i); err == nil {
		this := &ForgeFedFilesRemovedPropertyIterator{
			alias:                 alias,
			hasStringMember:       true,
			xmlschemaStringMember: v,
		}
		return this, nil
	}
	this := &ForgeFedFilesRemovedPropertyIterator{
		alias:   alias,
		unknown: i,
	}
	return this, nil
}
func (this ForgeFedFilesRemovedPropertyIterator) Get() string {
	return this.xmlschemaStringMember
}
func (this ForgeFedFilesRemovedPropertyIterator) GetIRI() *url.URL {
	return this.iri
}
func (this ForgeFedFilesRemovedPropertyIterator) HasAny() bool {
	return this.IsXMLSchemaString() || this.iri != nil
}
func (this ForgeFedFilesRemovedPropertyIterator) IsIRI() bool {
	return this.iri != nil
}
func (this ForgeFedFilesRemovedPropertyIterator) IsXMLSchemaString() bool {
	return this.hasStringMember
}
func (this ForgeFedFilesRemovedPropertyIterator) JSONLDContext() map[string]string {
	m := map[string]string{"https://forgefed.peers.community/ns": this.alias}
	var child map[string]string
	for k, v := range child {
		m[k] = v
	}
	return m
}
func (this ForgeFedFilesRemovedPropertyIterator) KindIndex() int {
	if this.IsXMLSchemaString() {
		return 0
	}
	if this.IsIRI() {
		return -2
	}
	return -1
}
func (this ForgeFedFilesRemovedPropertyIterator) LessThan(o vocab.ForgeFedFilesRemovedPropertyIterator) bool {
	if this.IsIRI() && o.IsIRI() {
		return this.iri.String() < o.GetIRI().String()
	} else if this.IsIRI() {
		return true
	} else if o.IsIRI() {
		return false
	}
	if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() {
		return false
	} else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() {
		return false
	} else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() {
		return true
	} else {
		return string1.LessString(this.Get(), o.Get())
	}
}
func (this ForgeFedFilesRemovedPropertyIterator) Name() string {
	if len(this.alias) > 0 {
		return this.alias + ":" + "ForgeFedFilesRemoved"
	} else {
		return "ForgeFedFilesRemoved"
	}
}
func (this ForgeFedFilesRemovedPropertyIterator) Next() vocab.ForgeFedFilesRemovedPropertyIterator {
	if this.myIdx+1 >= this.parent.Len() {
		return nil
	} else {
		return this.parent.At(this.myIdx + 1)
	}
}
func (this ForgeFedFilesRemovedPropertyIterator) Prev() vocab.ForgeFedFilesRemovedPropertyIterator {
	if this.myIdx-1 < 0 {
		return nil
	} else {
		return this.parent.At(this.myIdx - 1)
	}
}
func (this *ForgeFedFilesRemovedPropertyIterator) Set(v string) {
	this.clear()
	this.xmlschemaStringMember = v
	this.hasStringMember = true
}
func (this *ForgeFedFilesRemovedPropertyIterator) SetIRI(v *url.URL) {
	this.clear()
	this.iri = v
}
func (this *ForgeFedFilesRemovedPropertyIterator) clear() {
	this.unknown = nil
	this.iri = nil
	this.hasStringMember = false
}
func (this ForgeFedFilesRemovedPropertyIterator) serialize() (interface{}, error) {
	if this.IsXMLSchemaString() {
		return string1.SerializeString(this.Get())
	} else if this.IsIRI() {
		return this.iri.String(), nil
	}
	return this.unknown, nil
}
type ForgeFedFilesRemovedProperty struct {
	properties []*ForgeFedFilesRemovedPropertyIterator
	alias      string
}
func DeserializeFilesRemovedProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) {
	alias := ""
	if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok {
		alias = a
	}
	propName := "filesRemoved"
	if len(alias) > 0 {
		propName = fmt.Sprintf("%s:%s", alias, "filesRemoved")
	}
	i, ok := m[propName]
	if ok {
		this := &ForgeFedFilesRemovedProperty{
			alias:      alias,
			properties: []*ForgeFedFilesRemovedPropertyIterator{},
		}
		if list, ok := i.([]interface{}); ok {
			for _, iterator := range list {
				if p, err := deserializeForgeFedFilesRemovedPropertyIterator(iterator, aliasMap); err != nil {
					return this, err
				} else if p != nil {
					this.properties = append(this.properties, p)
				}
			}
		} else {
			if p, err := deserializeForgeFedFilesRemovedPropertyIterator(i, aliasMap); err != nil {
				return this, err
			} else if p != nil {
				this.properties = append(this.properties, p)
			}
		}
		for idx, ele := range this.properties {
			ele.parent = this
			ele.myIdx = idx
		}
		return this, nil
	}
	return nil, nil
}
func NewForgeFedFilesRemovedProperty() *ForgeFedFilesRemovedProperty {
	return &ForgeFedFilesRemovedProperty{alias: ""}
}
func (this *ForgeFedFilesRemovedProperty) AppendIRI(v *url.URL) {
	this.properties = append(this.properties, &ForgeFedFilesRemovedPropertyIterator{
		alias:  this.alias,
		iri:    v,
		myIdx:  this.Len(),
		parent: this,
	})
}
func (this *ForgeFedFilesRemovedProperty) AppendXMLSchemaString(v string) {
	this.properties = append(this.properties, &ForgeFedFilesRemovedPropertyIterator{
		alias:                 this.alias,
		hasStringMember:       true,
		myIdx:                 this.Len(),
		parent:                this,
		xmlschemaStringMember: v,
	})
}
func (this ForgeFedFilesRemovedProperty) At(index int) vocab.ForgeFedFilesRemovedPropertyIterator {
	return this.properties[index]
}
func (this ForgeFedFilesRemovedProperty) Begin() vocab.ForgeFedFilesRemovedPropertyIterator {
	if this.Empty() {
		return nil
	} else {
		return this.properties[0]
	}
}
func (this ForgeFedFilesRemovedProperty) Empty() bool {
	return this.Len() == 0
}