This class represent the binding properties of a Binding class.
More...
This class represent the binding properties of a Binding class.
- Todo:
- Different algorithm could be rework as they could be more clean and efficient since we had contains and getitem to MainProp
◆ _get_type()
def bindings.BindingProps._get_type |
( |
|
self, |
|
|
|
key, |
|
|
|
item |
|
) |
| |
|
private |
Called by add_properties() to retrieve MainProp type.
- Todo:
- All case not or partially process (see TODO:):
- Item dict with '$ref' that is not schema and no 'type'
- Item dict with '$ref' that's not part of bindings.dtschema_types dict
- Item that doesn't fit in any if else
◆ _update()
def bindings.BindingProps._update |
( |
|
self | ) |
|
|
private |
◆ _value_analyzer()
def bindings.BindingProps._value_analyzer |
( |
|
self, |
|
|
|
item |
|
) |
| |
|
private |
Analyze value type of input and process it.
It should be called for extract necessary info for _props It ceate some Prop or list of Prop or simply return a var that should be added to the main Prop value
◆ add_properties()
def bindings.BindingProps.add_properties |
( |
|
self, |
|
|
|
properties |
|
) |
| |
Init or update _optional and _props.
- Parameters
-
◆ add_required()
def bindings.BindingProps.add_required |
( |
|
self, |
|
|
|
required |
|
) |
| |
◆ prop_from_name()
def bindings.BindingProps.prop_from_name |
( |
|
self, |
|
|
|
name |
|
) |
| |
Explicit : return a Prop for a given name.
- Parameters
-
name | Name of the desired Prop |
- Returns
- A Prop item or None
◆ _optional
bindings.BindingProps._optional |
|
private |
A list of all optional properties
◆ _props
def bindings.BindingProps._props |
|
private |
A dict Contains properties formatted with Prop
◆ _required
bindings.BindingProps._required |
|
private |
A list of all required properties
◆ _verbose
bindings.BindingProps._verbose |
|
private |
Internal reference for printing debug level (0 to 3)
The documentation for this class was generated from the following file: