func (this JSONLDTypePropertyIterator) KindIndex() int {
	if this.IsXMLSchemaAnyURI() {
		return 0
	}
	if this.IsXMLSchemaString() {
		return 1
	}
	if this.IsIRI() {
		return -2
	}
	return -1
}
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.
package propertytype
import (
	"fmt"
	anyuri "github.com/go-fed/activity/streams/values/anyURI"
	string1 "github.com/go-fed/activity/streams/values/string"
	vocab "github.com/go-fed/activity/streams/vocab"
	"net/url"
)
type JSONLDTypePropertyIterator struct {
	xmlschemaAnyURIMember *url.URL
	xmlschemaStringMember string
	hasStringMember       bool
	unknown               interface{}
	alias                 string
	myIdx                 int
	parent                vocab.JSONLDTypeProperty
}
func NewJSONLDTypePropertyIterator() *JSONLDTypePropertyIterator {
	return &JSONLDTypePropertyIterator{alias: ""}
}
func deserializeJSONLDTypePropertyIterator(i interface{}, aliasMap map[string]string) (*JSONLDTypePropertyIterator, error) {
	alias := ""
	if v, err := anyuri.DeserializeAnyURI(i); err == nil {
		this := &JSONLDTypePropertyIterator{
			alias:                 alias,
			xmlschemaAnyURIMember: v,
		}
		return this, nil
	} else if v, err := string1.DeserializeString(i); err == nil {
		this := &JSONLDTypePropertyIterator{
			alias:                 alias,
			hasStringMember:       true,
			xmlschemaStringMember: v,
		}
		return this, nil
	}
	this := &JSONLDTypePropertyIterator{
		alias:   alias,
		unknown: i,
	}
	return this, nil
}
func (this JSONLDTypePropertyIterator) GetIRI() *url.URL {
	return this.xmlschemaAnyURIMember
}
func (this JSONLDTypePropertyIterator) GetXMLSchemaAnyURI() *url.URL {
	return this.xmlschemaAnyURIMember
}
func (this JSONLDTypePropertyIterator) GetXMLSchemaString() string {
	return this.xmlschemaStringMember
}
func (this JSONLDTypePropertyIterator) HasAny() bool {
	return this.IsXMLSchemaAnyURI() ||
		this.IsXMLSchemaString()
}
func (this JSONLDTypePropertyIterator) IsIRI() bool {
	return this.xmlschemaAnyURIMember != nil
}
func (this JSONLDTypePropertyIterator) IsXMLSchemaAnyURI() bool {
	return this.xmlschemaAnyURIMember != nil
}
func (this JSONLDTypePropertyIterator) IsXMLSchemaString() bool {
	return this.hasStringMember
}
func (this JSONLDTypePropertyIterator) JSONLDContext() map[string]string {
	var m map[string]string
	var child map[string]string
	for k, v := range child {
		m[k] = v
	}
	return m
}