lisa.wlgen.rta.NameProperty#
- class lisa.wlgen.rta.NameProperty(name, _from_merge=False)[source]#
Bases:
SimpleProperty
,MetaPropertyBase
Name the phase.
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
Names are combined with
/
along the path to each leaf to reflect names of all levels from the root to the leaves.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#
- NameProperty.__class__#
alias of
PropertyMeta
Attributes#
- NameProperty.KEY = 'name'#
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
.
- NameProperty.SEPARATOR = '/'#
Properties#
- property NameProperty.key#
Inherited property, see
lisa.wlgen.rta.PropertyBase.key
Key of the instance.
- property NameProperty.val#
Inherited property, see
lisa.wlgen.rta.SimpleProperty.val
Value “payload” of the property.
Methods#
- NameProperty.__and__(other)[source]#
Names are combined with
/
along the path to each leaf to reflect names of all levels from the root to the leaves.
- NameProperty.HASH_COERCE(x, coerce)#
Inherited method, see
lisa.utils.SimpleHash.HASH_COERCE()
Used to coerce the values of
self.__dict__
to hashable values.
- classmethod NameProperty.find_cls(key)#
Inherited method, see
lisa.wlgen.rta.PropertyBase.find_cls()
Find which subclass can handle
key
.
- classmethod NameProperty.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.