Class Constraint.DateRange
A class which provides a date constraint for a Fabric connection.
Use HTTPFabricConnection#getDateRangeConstraint method to
get a 'Constraint.DateRange' object for the current Fabric
connection.
Defined in: <D:\Programs\Neeve\Projects\NeeveBuild\stjsapi/src/main/webapp/js\constraint\DateRange.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Constraint.DateRange(rangeName, minValue, maxValue, eventScope)
Represents a date range constraint for a Fabric connection.
|
Method Attributes | Method Name and Description |
---|---|
boolean |
containsValue(value)
Checks if the range contains the specified value
|
Date |
Returns the max value of the range constraint
|
Date |
Returns the min value of the range constraint
|
void |
setMaxValue(value)
Sets the specified value as the right boundary of the range constraint
|
void |
setMinValue(value)
Sets the specified value as the left boundary of the range constraint
|
Class Detail
Constraint.DateRange(rangeName, minValue, maxValue, eventScope)
Represents a date range constraint for a Fabric connection.
- Parameters:
- {String} rangeName
- The name of the constraint to be created
- {String} minValue
- The left boundary of the range constraint to be created. The date format is 'MM/DD/YYYY HH:mm:ss'.
- {String} maxValue
- The right boundary of the range constraint to be created. The date format is 'MM/DD/YYYY HH:mm:ss'.
- {String} eventScope
- The data scope of the constraint to be created. Possible values: 'LOCAL' (the current component scope), 'OBSERVABLE' (the current Fabric node scope), 'GLOBAL' (the whole Fabric scope).
Method Detail
{boolean}
containsValue(value)
Checks if the range contains the specified value
- Parameters:
- {Date} value
- The value to be checked
- Returns:
- True if the range contains the specified value, false otherwise
{Date}
getMaxValue()
Returns the max value of the range constraint
- Returns:
- the max range value
{Date}
getMinValue()
Returns the min value of the range constraint
- Returns:
- the min range value
setMaxValue(value)
Sets the specified value as the right boundary of the range constraint
- Parameters:
- {Date} value
- The value to be set as the max value of the range
setMinValue(value)
Sets the specified value as the left boundary of the range constraint
- Parameters:
- {Date} value
- The value to be set as the min value of the range