public class IsWithinRange extends java.lang.Object implements IRestriction
| Constructor and Description |
|---|
IsWithinRange(java.util.Date start,
java.util.Date end)
Instantiates a new checks if is within range.
|
IsWithinRange(double start,
double end)
Instantiates a new checks if is within range.
|
IsWithinRange(long start,
long end)
Instantiates a new checks if is within range.
|
IsWithinRange(java.lang.String propertyName,
java.util.Date start,
java.util.Date end)
Instantiates a new checks if is within range.
|
IsWithinRange(java.lang.String propertyName,
double start,
double end)
Instantiates a new checks if is within range.
|
IsWithinRange(java.lang.String propertyName,
long start,
long end)
Instantiates a new checks if is within range.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isIncludeEndValue()
Checks if is include end value.
|
boolean |
isIncludeStartValue()
Checks if is include start value.
|
boolean |
isMaximumEndValue()
Checks if is maximum end value.
|
boolean |
isMinimumStartValue()
Checks if is minimum start value.
|
void |
setIncludeEndValue(boolean isIncludeEndValue)
Sets the include end value.
|
void |
setIncludeStartValue(boolean isIncludeStartValue)
Sets the include start value.
|
void |
setMaximumEndValue(boolean isMaximumEndValue)
Sets the maximum end value.
|
void |
setMinimumStartValue(boolean isMinimumStartValue)
Sets the minimum start value.
|
java.lang.String |
toString() |
public IsWithinRange(java.util.Date start,
java.util.Date end)
start - the startend - the endpublic IsWithinRange(double start,
double end)
start - the startend - the endpublic IsWithinRange(long start,
long end)
start - the startend - the endpublic IsWithinRange(java.lang.String propertyName,
java.util.Date start,
java.util.Date end)
propertyName - the property namestart - the startend - the endpublic IsWithinRange(java.lang.String propertyName,
double start,
double end)
propertyName - the property namestart - the startend - the endpublic IsWithinRange(java.lang.String propertyName,
long start,
long end)
propertyName - the property namestart - the startend - the endpublic boolean isIncludeEndValue()
public boolean isIncludeStartValue()
public boolean isMaximumEndValue()
public boolean isMinimumStartValue()
public void setIncludeEndValue(boolean isIncludeEndValue)
isIncludeEndValue - the new include end valuepublic void setIncludeStartValue(boolean isIncludeStartValue)
isIncludeStartValue - the new include start valuepublic void setMaximumEndValue(boolean isMaximumEndValue)
isMaximumEndValue - the new maximum end valuepublic void setMinimumStartValue(boolean isMinimumStartValue)
isMinimumStartValue - the new minimum start valuepublic java.lang.String toString()
toString in class java.lang.Object