|
Makeprojects
|
Value can only be integer or None. More...
Public Member Functions | |
| __init__ (self, name, fallback=None) | |
| Initialize the default values. | |
| get_value (self) | |
| Return the string representation of the integer, or None. | |
| __repr__ (self) | |
| Convert to string. | |
| __str__ (self) | |
| Convert to string. | |
Static Public Member Functions | |
| vs_validate (key, configuration, fallback=None, prefix=None) | |
| Check if there is an override with a vs_ prefix. | |
Public Attributes | |
| name = name | |
| Name of the validator. | |
Static Public Attributes | |
| value = IntegerProperty("_value") | |
| Integer value. | |
Value can only be integer or None.
| makeprojects.validators.VSIntegerProperty.__init__ | ( | self, | |
| name, | |||
| fallback = None ) |
Initialize the default values.
Set the name (Required), value and compiler switch.
| name | Name of the validator |
| fallback | Default value, None is acceptable |
| makeprojects.validators.VSIntegerProperty.__repr__ | ( | self | ) |
Convert to string.
| makeprojects.validators.VSIntegerProperty.__str__ | ( | self | ) |
Convert to string.
| makeprojects.validators.VSIntegerProperty.get_value | ( | self | ) |
Return the string representation of the integer, or None.
|
static |
Check if there is an override with a vs_ prefix.
Check if the configuration has a key of "vs_" + prefix + key in the configuration and if not found or None, use the fallback as is.
| key | Name of the XML attribute key |
| configuration | configuration to scan for an override |
| fallback | Value to use in case there is no override. |
| prefix | String to insert after "vs_" |