ValidityState
ValidityState
概述
ValidityState 是 Aspose.Html FOSS 中用于 Python 的类。
表单控件的约束验证标志。
此类提供 1 个方法,用于在 Python 程序中处理 ValidityState 对象。可用的方法包括:__init__。在安装了 Aspose.Html FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:bad_input、custom_error、pattern_mismatch、range_overflow、range_underflow、step_mismatch,以及另外 5 个。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
value_missing | bool | 读取 | 获取 missing 的值。 |
type_mismatch | bool | 读取 | 获取类型不匹配。 |
pattern_mismatch | bool | 读取 | 获取模式不匹配。 |
too_long | bool | 读取 | Gets the too long. |
too_short | bool | 读取 | 获取过短。 |
range_underflow | bool | 读取 | 获取范围下溢。 |
range_overflow | bool | 读取 | 获取范围溢出。 |
step_mismatch | bool | 读取 | 获取步长不匹配。 |
bad_input | bool | 读取 | 获取错误的输入。 |
custom_error | bool | 读取 | 获取自定义错误。 |
valid | bool | 读取 | 是否所有非 valid 标志为 false。 |
方法
| 签名 | 描述 |
|---|---|
__init__(value_missing: bool, type_mismatch: bool, pattern_mismatch: bool, too_long: bool, too_short: bool, range_underflow: bool, range_overflow: bool, step_mismatch: bool, bad_input: bool, custom_error: bool) | Calls init(value_missing, type_mismatch, pattern_mismatch, too_long, too_short, range_underflow, range_overflow, step_mismatch, bad_input, custom_error) 在此 ValidityState 实例上。 |