func (this W3IDSecurityV1OwnerProperty) KindIndex() int {
	if this.IsXMLSchemaAnyURI() {
		return 0
	}
	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 propertyowner
import (
	"fmt"
	anyuri "github.com/go-fed/activity/streams/values/anyURI"
	vocab "github.com/go-fed/activity/streams/vocab"
	"net/url"
)
type W3IDSecurityV1OwnerProperty struct {
	xmlschemaAnyURIMember *url.URL
	unknown               interface{}
	alias                 string
}
func DeserializeOwnerProperty(m map[string]interface{}, aliasMap map[string]string) (*W3IDSecurityV1OwnerProperty, error) {
	alias := ""
	if a, ok := aliasMap["https://w3id.org/security/v1"]; ok {
		alias = a
	}
	propName := "owner"
	if len(alias) > 0 {
		propName = fmt.Sprintf("%s:%s", alias, "owner")
	}
	i, ok := m[propName]
	if ok {
		if v, err := anyuri.DeserializeAnyURI(i); err == nil {
			this := &W3IDSecurityV1OwnerProperty{
				alias:                 alias,
				xmlschemaAnyURIMember: v,
			}
			return this, nil
		}
		this := &W3IDSecurityV1OwnerProperty{
			alias:   alias,
			unknown: i,
		}
		return this, nil
	}
	return nil, nil
}
func NewW3IDSecurityV1OwnerProperty() *W3IDSecurityV1OwnerProperty {
	return &W3IDSecurityV1OwnerProperty{alias: ""}
}
func (this *W3IDSecurityV1OwnerProperty) Clear() {
	this.unknown = nil
	this.xmlschemaAnyURIMember = nil
}
func (this W3IDSecurityV1OwnerProperty) Get() *url.URL {
	return this.xmlschemaAnyURIMember
}
func (this W3IDSecurityV1OwnerProperty) GetIRI() *url.URL {
	return this.xmlschemaAnyURIMember
}
func (this W3IDSecurityV1OwnerProperty) HasAny() bool {
	return this.IsXMLSchemaAnyURI()
}
func (this W3IDSecurityV1OwnerProperty) IsIRI() bool {
	return this.xmlschemaAnyURIMember != nil
}
func (this W3IDSecurityV1OwnerProperty) IsXMLSchemaAnyURI() bool {
	return this.xmlschemaAnyURIMember != nil
}
func (this W3IDSecurityV1OwnerProperty) JSONLDContext() map[string]string {
	m := map[string]string{"https://w3id.org/security/v1": this.alias}
	var child map[string]string
	for k, v := range child {
		m[k] = v
	}
	return m
}