new Condition()
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 -
getAttributeType(){Attribute}
-
Returns the AttributeType.
Returns:
Type Description Attribute -
getComparisonMethod(){ConditionMethod}
-
Returns the comparison method.
Returns:
Type Description ConditionMethod -
getName(){string}
-
Returns the name.
Returns:
Type Description string -
getReferenceValue(){*}
-
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
-
setName(name)
-
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 -
withName(name){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