sbol3.property_base

Module Contents

Classes

ListProperty

Helper class that provides a standard way to create an ABC using

Property

Helper class that provides a standard way to create an ABC using

SingletonProperty

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: Optional[List] = 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: Union[int, slice]) None
__eq__(other) bool

Return self==value.

__getitem__(key: Union[int, slice]) Any
__len__() int
__repr__() str

Return repr(self).

__setitem__(key: Union[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: Optional[List] = None)

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

property attribute_name: Union[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)
class SingletonProperty(property_owner: Any, property_uri: str, lower_bound: int, upper_bound: int, validation_rules: Optional[List] = None)

Bases: Property, abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

get() Any
set(value: Any) None