public class FormulaRange
extends java.lang.Object
implements com.inet.report.formula.Evaluable, java.io.Serializable
new FormulaRange(new Integer(1),new Integer(2),false,true)
.new FormulaRange(myDate,null,false,false)
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
from
The Object that holds the from value of range.
|
java.lang.Object |
to
The Object that holds the to value of range.
|
Constructor and Description |
---|
FormulaRange(java.lang.Object from,
java.lang.Object to,
boolean includeFrom,
boolean includeTo)
Create a new FormulaRange object.
|
FormulaRange(java.lang.Object from,
java.lang.Object to,
java.lang.String intervalType,
boolean includeFrom,
boolean includeTo)
Create a new FormulaRange object.
|
FormulaRange(java.lang.Object from,
java.lang.Object to)
Creates a new FormulaRange object.
|
FormulaRange(java.lang.Object from,
java.lang.Object to,
java.lang.Object intervalType)
Create a new FormulaRange object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getFrom()
Gets the value the range begins with.
|
java.lang.String |
getIntervalType()
If the range type is Date or Time, the intervalType specifies the part of the
Date or Time, that should be used, e.g.
|
java.lang.Object |
getTo()
Gets the value the range ends with.
|
boolean |
isHighLimitIncluded()
Returns whether or not the high limit of this range is inclusive or exclusive.
|
boolean |
isLowLimitIncluded()
Returns whether or not the low limit of this range is inclusive or exclusive.
|
void |
setFrom(java.lang.Object from)
Sets the value the range should begin with.
|
void |
setHighLimitIncluded(boolean includeTo)
Sets whether or not the high limit of this range is inclusive or exclusive.
|
void |
setIntervalType(java.lang.String intervalType)
If the range type is Date or Time, the intervalType specifies the part of the
Date or Time that should be used for the range, e.g.
|
void |
setLowLimitIncluded(boolean includeFrom)
Sets whether or not the low limit of this range is inclusive or exclusive.
|
void |
setTo(java.lang.Object to)
Sets the value the range should end with.
|
java.lang.String |
toString()
Returns a simple string representation of this FormulaRange, using "_to", "to_", "_to_" and "to" to indicate limit inclusion.
|
public java.lang.Object from
public java.lang.Object to
public FormulaRange(java.lang.Object from, java.lang.Object to, boolean includeFrom, boolean includeTo)
from
- The Object that holds the "from" value of the rangeto
- The Object that holds the "to" value of the rangeincludeFrom
- Whether or not the low limit of this range is inclusive or exclusive.includeTo
- Whether or not the high limit of this range is inclusive or exclusive.public FormulaRange(java.lang.Object from, java.lang.Object to, java.lang.String intervalType, boolean includeFrom, boolean includeTo)
from
- The Object that holds the from value of range.to
- The Object that holds the to value of range.intervalType
- The Object that specifies which part of a Date or Time should be used for range, i.e. "d" for day.includeFrom
- Whether or not the low limit of this range is to be included in the rangeincludeTo
- Whether or not the high limit of this range is to be included in the rangepublic FormulaRange(java.lang.Object from, java.lang.Object to)
from
- The Object that holds the from value of range.to
- The Object that holds the to value of range.public FormulaRange(java.lang.Object from, java.lang.Object to, java.lang.Object intervalType)
from
- The Object that holds the from value of range.to
- The Object that holds the to value of range.intervalType
- The Object that specifies which part of a Date or Time should be used for range, i.e. "d" for day.public final boolean isLowLimitIncluded()
public final void setLowLimitIncluded(boolean includeFrom)
includeFrom
- Whether or not the low limit of this range is inclusive or exclusive.public final boolean isHighLimitIncluded()
public final void setHighLimitIncluded(boolean includeTo)
includeTo
- Whether or not the high limit of this range is inclusive or exclusive.public void setFrom(java.lang.Object from)
from
- The value the range should begin withpublic java.lang.Object getFrom()
public void setTo(java.lang.Object to)
to
- The value the range should end withpublic java.lang.Object getTo()
public void setIntervalType(java.lang.String intervalType)
intervalType
- Interval type to use for date or time ranges. "d", "w", "m" are allowed values.public java.lang.String getIntervalType()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1999-2020 by i-net software GmbH