Class: Condition

Condition

Condition for subscribed Attributes.

Methods

compare(newAttribute, oldAttribute){boolean}

Processes the comparison.

Name Type Description
newAttribute Attribute

new Attribute that should be compared

oldAttribute Attribute

old Attribute

Returns:
Type Description
boolean

equals(condition){boolean}

Compares this instance with the given one.

Name Type Description
condition Condition

Condition that should be compared

Returns:
Type Description
boolean

Returns the AttributeType.

Returns:
Type Description
Attribute

Returns the comparison method.

Returns:
Type Description
ConditionMethod

Returns the name.

Returns:
Type Description
string

Returns the comparison value.

Returns:
Type Description
*

setAttributeType(attribute)

Sets the attributeType.

Name Type Description
attribute Attribute

AttributeType

setComparisonMethod(comparisonMethod)

Sets the ComparisonMethod.

Name Type Description
comparisonMethod ConditionMethod

comparison Method

Sets the name.

Name Type Description
name string

Name

setReferenceValue(referenceValue)

Sets the referenceValue.

Name Type Description
referenceValue *

comparison value

withAttributeType(attribute){Condition}

Builder for AttributeType.

Name Type Description
attribute Attribute

Attributes that would be verified.

Returns:
Type Description
Condition

withComparisonMethod(comparisonMethod){Condition}

Builder for comparison method.

Name Type Description
comparisonMethod ConditionMethod

method for comparison

Returns:
Type Description
Condition

Builder for name.

Name Type Description
name String

Name

Returns:
Type Description
Condition

withReferenceValue(referenceValue){Condition}

Builder for comparison value.

Name Type Description
referenceValue String

comparisonValue

Returns:
Type Description
Condition