Class: Callback

Callback

Callbacks defines events for sending data to subscribers. The data to be sent, are specified in the attributeTypeList.

Constructor: Initializes the AttributeTypeList.

Returns:
Type Description
Callback

Methods

addAttributeType(attribute)

Adds an attribute to AttributeTypeList.

Name Type Description
attribute Attribute

Attribute

equals(_callback){boolean}

Compares this instance with the given one.

Name Type Description
_callback Callback

Callback that should be compared

Returns:
Type Description
boolean

Returns the associated attributes (only the types).

Returns:
Type Description
AttributeList

getName(){string}

Returns the name.

Returns:
Type Description
string

removeAttributeType(attribute)

Removes an attribute from AttributeTypeList.

Name Type Description
attribute Attribute

AttributeType

setAttributeTypes(_attributes)

Adds a list of AttributeTypes.

Name Type Description
_attributes AttributeList | Array

AttributeTypeList

Sets the name.

Name Type Description
name string

Name

withAttributeTypes(attributeListOrArray){Callback}

Builder for AttributeTypes.

Name Type Description
attributeListOrArray AttributeList | Array

attributeTypes

Returns:
Type Description
Callback

Builder for name.

Name Type Description
_name String

Name

Returns:
Type Description
Callback