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-only
error  number

The broken rule represents an error.

Default value

read-only
information  number

The broken rule represents information.

Default value

read-only
success  number

The rule executed successfully.

Default value

read-only
warning  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.