class staticbo.rules. RuleSeverity
Source: rules/
Specifies the severity of a rule failure.
Properties
Method
new RuleSeverity()
Creates a new enumeration to define rule severity options.
- Extends
- bo.system.Enumeration
Properties
read-only$name
string
The name of the enumeration. The default value is the name of the constructor.
- Inherited from
- bo.system.Enumeration#$name
read-onlyerror
number
The broken rule represents an error.
- Default value
read-onlyinformation
number
The broken rule represents information.
- Default value
read-onlysuccess
number
The rule executed successfully.
- Default value
read-onlywarning
number
The broken rule represents a warning.
- Default value
Method
hasValue(name) → boolean
Determines if the enumeration has an item with the given name.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
name |
|
|
The name of the enumeration item. |
- Inherited from
- bo.system.Enumeration#hasValue
- Returns
-
True if the name is an enumeration item, otherwise false.