lisa.wlgen.rta.MetaStoreProperty#
- class lisa.wlgen.rta.MetaStoreProperty(mapping)[source]#
Bases:
SimpleProperty
,MetaPropertyBase
Plain key-value storage to be used as the user see fit.
- Parameters:
mapping (dict) – Dictionary of user-defined keys.
Since this is a meta property, it will not influence the generation of the JSON and can be used to hold any sort of custom metadata needing to be attached to the phases.
Classes
__class__
inheritedMetaclass for properties.
Attributes
Subclasses can override this attribute so that
PropertyBase.from_key()
knows that it can call their_from_key()
method for that key.Properties
Methods
Combine the key value pairs together. In case of conflict, the value on closer to the root is chosen.
HASH_COERCE()
inheritedUsed to coerce the values of
self.__dict__
to hashable values.find_cls()
inheritedFind which subclass can handle
key
.from_key()
inheritedAlternative constructor that is available with the same signature for all properties.
Classes#
- MetaStoreProperty.__class__#
alias of
PropertyMeta
Attributes#
- MetaStoreProperty.KEY = 'meta'#
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 MetaStoreProperty.key#
Inherited property, see
lisa.wlgen.rta.PropertyBase.key
Key of the instance.
- property MetaStoreProperty.val#
Inherited property, see
lisa.wlgen.rta.SimpleProperty.val
Value “payload” of the property.
Methods#
- MetaStoreProperty.__and__(other)[source]#
Combine the key value pairs together. In case of conflict, the value on closer to the root is chosen.
- MetaStoreProperty.HASH_COERCE(x, coerce)#
Inherited method, see
lisa.utils.SimpleHash.HASH_COERCE()
Used to coerce the values of
self.__dict__
to hashable values.
- classmethod MetaStoreProperty.find_cls(key)#
Inherited method, see
lisa.wlgen.rta.PropertyBase.find_cls()
Find which subclass can handle
key
.
- classmethod MetaStoreProperty.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.