Class sap.ui.test.matchers.AggregationLengthEqualsModule: sap/ui/test/matchers/AggregationLengthEquals

extends Matcher

AggregationLengthEquals - checks if an aggregation contains at least one entry


Since: 1.23.
Constructor Summary
new sap.ui.test.matchers.AggregationLengthEquals(mSettings?)AggregationLengthEquals - checks if an aggregation contains at least one entry.
Method Summary
sap.ui.test.matchers.AggregationLengthEquals.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.test.matchers.AggregationLengthEquals with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.test.matchers.AggregationLengthEquals.getMetadata()Returns a metadata object for class sap.ui.test.matchers.AggregationLengthEquals.
getLength()Gets current value of property length.
getName()Gets current value of property name.
isMatching(oControl)Checks if the control's aggregation name has length length.
setLength(iLength)Sets a new value for property length.
setName(sName)Sets a new value for property name.
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.test.matchers.AggregationLengthEquals(mSettings?)
AggregationLengthEquals - checks if an aggregation contains at least one entry.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.

The supported settings are:

In addition, all settings applicable to the base type sap.ui.test.matchers.Matcher can be used as well.

Parameters:
{object}mSettings? optional map/JSON-object with initial settings for the new AggregationLengthEqualsMatcher
Method Detail
sap.ui.test.matchers.AggregationLengthEquals.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.test.matchers.AggregationLengthEquals with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.test.matchers.Matcher.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.test.matchers.AggregationLengthEquals.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.test.matchers.AggregationLengthEquals.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getLength(): int
Gets current value of property length.

The length that aggregation name should have.

Returns:
{int} Value of property length
getName(): string
Gets current value of property name.

The name of the aggregation that is used for matching.

Returns:
{string} Value of property name
isMatching(oControl): boolean
Checks if the control's aggregation name has length length.
Parameters:
{sap.ui.core.Control}oControl the control that is checked by the matcher
Returns:
{boolean} true if the length of aggregation name is the same as length, false if it is not.
Sets a new value for property length.

The length that aggregation name should have.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{int}iLength New value for property length
Returns:
{sap.ui.test.matchers.AggregationLengthEquals} Reference to this in order to allow method chaining
Sets a new value for property name.

The name of the aggregation that is used for matching.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{string}sName New value for property name
Returns:
{sap.ui.test.matchers.AggregationLengthEquals} Reference to this in order to allow method chaining