Data elements.
Bases: everest.representers.dataelements.DataElement
Abstract base class for collection data elements.
Bases: object
Abstract base class for data element classes.
Data elements manage value state during serialization and deserialization. Implementations may need to be adapted to the format of the external representation they manage.
list of weak references to the object (if defined)
(Abstract) factory method taking a resource as input.
Static attribute mapping.
Bases: object
Convenience proxy for accessing data from data elements.
The proxy allows you to transparently access terminal, member, and collection attributes. Nested access is also supported.
Example:
prx = DataElementAttributeProxy(data_element)
de_id = prx.id # terminal access
de_parent = prx.parent # member access
de_child = prx.children[0] # collection access
de_grandchild = prx.children[0].children[0] # nested collection access
list of weak references to the object (if defined)
Bases: everest.representers.dataelements.DataElement
Data element managing a linked resource during serialization and deserialization.
Bases: everest.representers.dataelements.DataElement
Abstract base class for member data element classes.
Returns the mapped nested resource attribute (either a member or a collection resource attribute).
Returns: | object implementing :class:IDataelement or None if no nested resource is found for the given attribute name. |
---|
Returns the value for the given mapped terminal resource attribute.
Parameters: | attr (everest.representers.attributes.MappedAttribute) – attribute to retrieve. |
---|---|
Returns: | attribute value or None if no value is found for the given attribute name. |
Bases: everest.representers.dataelements._SimpleDataElementMixin, everest.representers.dataelements.CollectionDataElement
Basic implementation of a collection data element.
Bases: everest.representers.dataelements.LinkedDataElement
Basic implementation of a linked data element.
Bases: everest.representers.dataelements._SimpleDataElementMixin, everest.representers.dataelements.MemberDataElement
Basic implementation of a member data element.
Returns the (raw) value of the specified attribute.
Parameters: | attr_name (str) – name of the attribute to retrieve. |
---|
Returns the (raw) value of the specified attribute.
Parameters: | attr_name (str) – name of the attribute to retrieve. |
---|
Sets the (raw) value of the specified attribute.
Parameters: |
|
---|