Interface DataLevelBucket
- All Superinterfaces:
Cloneable
,JRCloneable
- All Known Implementing Classes:
BaseDataLevelBucket
,DesignDataLevelBucket
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Method Summary
Modifier and TypeMethodDescriptionReturns the comparator expression.Returns the grouping expression.Optional expression that provides labels for buckets.getOrder()
Returns the bucket sorting type.Class
<?> Returns the class of the bucket value.Returns the string name of the bucket value class.Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
Method Details
-
getValueClass
Class<?> getValueClass()Returns the class of the bucket value. Any class is allowed as long as it is in the classpath at compile and run time.- Returns:
- a Class instance representing the bucket value class
-
getValueClassName
String getValueClassName()Returns the string name of the bucket value class. -
getOrder
BucketOrder getOrder()Returns the bucket sorting type.The possible values are:
- Returns:
- the bucket sorting type
- See Also:
-
getExpression
JRExpression getExpression()Returns the grouping expression.- Returns:
- the grouping expression
-
getLabelExpression
JRExpression getLabelExpression()Optional expression that provides labels for buckets.- Returns:
- the bucket label expression
-
getComparatorExpression
JRExpression getComparatorExpression()Returns the comparator expression.The result of this expression is used to sort the buckets, in ascending or descending order (given by
getOrder()
. If the order type isBucketOrder.NONE
, no sorting will be performed and the comparator expression will be ignored.If no comparator expression is specified, the natural order will be used.
If the bucket has an order by expression, the comparator will be used to compare values as produced by that expression.
- Returns:
- the comparator expression
-
getBucketProperties
List<DataLevelBucketProperty> getBucketProperties()
-