|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.FormulaRange
public class FormulaRange
This class is the representation of a range, e.g. defined with a formula like '20 to_ 30'.
A range can have one or two limits - a lower and/or a higher limit. Either limit can be set to be
"inclusive" or "exclusive", that is, itself included in the range or not.
Note that if a range has only one limit, the range includes all values which are greater than the
limit (if the limit is the lower limit), or less than the limit accordingly (if the limit is the higher limit).
Examples:
new FormulaRange(new Integer(1),new Integer(2),false,true).new FormulaRange(myDate,null,false,false)
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
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. |
| Field Detail |
|---|
public java.lang.Object from
public java.lang.Object to
| Constructor Detail |
|---|
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 range
public 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.| Method Detail |
|---|
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.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||