self-assert / LabeledRule
Interface: LabeledRule
Describes a rule by its id and description.
Extended by
Labeling
isLabeledAs()
isLabeledAs(
aBrokenRuleLabel):boolean
Checks if the assertion has the same id and description as the given one.
Parameters
| Parameter | Type |
|---|---|
aBrokenRuleLabel | LabeledRule |
Returns
boolean
hasLabelId()
hasLabelId(
anId):boolean
Compares the id of the assertion with the given one.
Parameters
| Parameter | Type |
|---|---|
anId | string |
Returns
boolean
hasLabel()
hasLabel(
anId,aDescription):boolean
Compare the id and description of the assertion with the given ones.
Parameters
| Parameter | Type |
|---|---|
anId | string |
aDescription | string |
Returns
boolean
hasDescription()
hasDescription(
aDescription):boolean
Checks if the assertion has the given description.
Parameters
| Parameter | Type |
|---|---|
aDescription | string |
Returns
boolean
Remarks
This method is used mostly for testing.
getId()
getId():
string
Returns the label identifier.
Returns
string
getDescription()
getDescription():
string
Returns
string
