sbol3.property_base
Module Contents
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
- class ListProperty(property_owner: Any, property_uri: str, lower_bound: int, upper_bound: int, validation_rules: List | None = None)
Bases:
Property
,collections.abc.MutableSequence
,abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- __contains__(item) bool
- __delitem__(key: int | slice) None
- __eq__(other) bool
Return self==value.
- __getitem__(key: int | slice) Any
- __len__() int
- __repr__() str
Return repr(self).
- __setitem__(key: int | slice, value: Any) None
- __str__() str
Return str(self).
- insert(index: int, value: Any) None
S.insert(index, value) – insert value before index
- set(value: Any) None
- class Property(property_owner: Any, property_uri: str, lower_bound: int, upper_bound: int, validation_rules: List | None = None)
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- property attribute_name: str | None
Heuristically determine which attribute is associated with this property. If no attribute can be found for this property return None.
- abstract from_user(value: Any)
- item_added(item: Any) None
Stub method for child classes to override if they have to do any additional processing on items after they are added. This method will be called on each individual item that was added to the list.
- abstract set(value: Any) None
- abstract to_user(value: Any) str
- validate(name: str, report: sbol3.ValidationReport)