lisa.wlgen.rta.MetaPropertyBase#

class lisa.wlgen.rta.MetaPropertyBase[source]#

Bases: PropertyBase

Base class for meta properties.

Meta properties are properties that will not be translated into JSON, as opposed to concrete properties.

Classes

__class__ inherited

Metaclass for properties.

Attributes

KEY

Subclasses can override this attribute so that PropertyBase.from_key() knows that it can call their _from_key() method for that key.

Properties

key inherited

Key of the instance.

val inherited

Value “payload” of the property.

Methods

HASH_COERCE() inherited

Used to coerce the values of self.__dict__ to hashable values.

__and__() inherited

Combine two instances of the same property together.

find_cls() inherited

Find which subclass can handle key.

from_key() inherited

Alternative constructor that is available with the same signature for all properties.

Classes#

MetaPropertyBase.__class__#

alias of PropertyMeta

Attributes#

MetaPropertyBase.KEY = None#

Subclasses can override this attribute so that PropertyBase.from_key() knows that it can call their _from_key() method for that key.

Note

This class attribute will not be inherited automatically so that each class can be uniquely identified by its key. Subclass that do not override the value explicitly will get None.

Properties#

property MetaPropertyBase.key#

Inherited property, see lisa.wlgen.rta.PropertyBase.key

Key of the instance.

abstract property MetaPropertyBase.val#

Inherited property, see lisa.wlgen.rta.PropertyBase.val

Value “payload” of the property.

Methods#

MetaPropertyBase.HASH_COERCE(x, coerce)#

Inherited method, see lisa.utils.SimpleHash.HASH_COERCE()

Used to coerce the values of self.__dict__ to hashable values.

abstract MetaPropertyBase.__and__(other)#

Inherited method, see lisa.wlgen.rta.PropertyBase.__and__()

Combine two instances of the same property together.

classmethod MetaPropertyBase.find_cls(key)#

Inherited method, see lisa.wlgen.rta.PropertyBase.find_cls()

Find which subclass can handle key.

classmethod MetaPropertyBase.from_key(key, val)#

Inherited method, see lisa.wlgen.rta.PropertyBase.from_key()

Alternative constructor that is available with the same signature for all properties.