Class BaseDataLevelBucket
java.lang.Object
net.sf.jasperreports.engine.analytics.dataset.BaseDataLevelBucket
- All Implemented Interfaces:
Serializable,Cloneable,DataLevelBucket,JRCloneable
- Direct Known Subclasses:
DesignDataLevelBucket
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<DataLevelBucketProperty> protected JRExpressionstatic final Stringprotected JRExpressionprotected JRExpressionprotected BucketOrderprotected Class<?> protected Stringprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseDataLevelBucket(DataLevelBucket bucket, JRBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns 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.
-
Field Details
-
EXCEPTION_MESSAGE_KEY_BUCKET_LOAD_ERROR
- See Also:
-
valueClassName
-
valueClassRealName
-
valueClass
-
order
-
expression
-
labelExpression
-
comparatorExpression
-
bucketProperties
-
-
Constructor Details
-
BaseDataLevelBucket
protected BaseDataLevelBucket() -
BaseDataLevelBucket
-
-
Method Details
-
getValueClassName
Description copied from interface:DataLevelBucketReturns the string name of the bucket value class.- Specified by:
getValueClassNamein interfaceDataLevelBucket
-
getOrder
Description copied from interface:DataLevelBucketReturns the bucket sorting type.The possible values are:
- Specified by:
getOrderin interfaceDataLevelBucket- Returns:
- the bucket sorting type
- See Also:
-
getExpression
Description copied from interface:DataLevelBucketReturns the grouping expression.- Specified by:
getExpressionin interfaceDataLevelBucket- Returns:
- the grouping expression
-
getLabelExpression
Description copied from interface:DataLevelBucketOptional expression that provides labels for buckets.- Specified by:
getLabelExpressionin interfaceDataLevelBucket- Returns:
- the bucket label expression
-
getComparatorExpression
Description copied from interface:DataLevelBucketReturns 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.
- Specified by:
getComparatorExpressionin interfaceDataLevelBucket- Returns:
- the comparator expression
-
getValueClass
Description copied from interface:DataLevelBucketReturns the class of the bucket value. Any class is allowed as long as it is in the classpath at compile and run time.- Specified by:
getValueClassin interfaceDataLevelBucket- Returns:
- a Class instance representing the bucket value class
-
getBucketProperties
- Specified by:
getBucketPropertiesin interfaceDataLevelBucket
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-