Package net.sf.jasperreports.engine.base
Class JRBaseParameter
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseParameter
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRCloneable,JRParameter,JRPropertiesHolder
- Direct Known Subclasses:
JRBaseCrosstabParameter,JRDesignParameter
public class JRBaseParameter
extends Object
implements JRParameter, Serializable, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRExpressionprotected Stringprotected ParameterEvaluationTimeEnumprotected booleanprotected booleanprotected Stringprotected Class<?> protected Stringprotected JRPropertiesMapstatic final Stringprotected Class<?> protected Stringprotected StringFields inherited from interface net.sf.jasperreports.engine.JRParameter
FILTER, IS_IGNORE_PAGINATION, JASPER_REPORT, JASPER_REPORTS_CONTEXT, MAX_PAGE_HEIGHT, MAX_PAGE_WIDTH, REPORT_CLASS_LOADER, REPORT_CONNECTION, REPORT_CONTEXT, REPORT_DATA_SOURCE, REPORT_FORMAT_FACTORY, REPORT_LOCALE, REPORT_MAX_COUNT, REPORT_PARAMETERS_MAP, REPORT_RESOURCE_BUNDLE, REPORT_SCRIPTLET, REPORT_TEMPLATES, REPORT_TIME_ZONE, REPORT_VIRTUALIZER, REPOSITORY_CONTEXT, SORT_FIELDS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedJRBaseParameter(JRParameter parameter, JRBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()Specifies when the default value expression of a parameter is evaluated.Returns the property change support object for this instance.getName()Class<?> Returns the parameter nested value type.Returns the name of the parameter nested value type.Returns the parent properties holder, whose properties are used as defaults for this object.Returns this object's properties map.Class<?> booleanChecks whether the object has any properties.booleanbooleanvoidsetDescription(String description)
-
Field Details
-
PROPERTY_DESCRIPTION
- See Also:
-
name
-
description
-
valueClassName
-
valueClassRealName
-
nestedTypeName
-
isSystemDefined
protected boolean isSystemDefined -
isForPrompting
protected boolean isForPrompting -
evaluationTime
-
valueClass
-
nestedType
-
defaultValueExpression
-
propertiesMap
-
-
Constructor Details
-
JRBaseParameter
protected JRBaseParameter() -
JRBaseParameter
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceJRParameter
-
getDescription
- Specified by:
getDescriptionin interfaceJRParameter
-
setDescription
- Specified by:
setDescriptionin interfaceJRParameter
-
getValueClass
- Specified by:
getValueClassin interfaceJRParameter
-
getValueClassName
- Specified by:
getValueClassNamein interfaceJRParameter
-
getNestedType
Description copied from interface:JRParameterReturns the parameter nested value type.The parameter nested value type is used when the parameter value class is not sufficient in determining the expected type of the parameter values. The most common such scenario is when the parameter value class is
Collectionor a derived class, in which case the nested type specifies the type of values which are to be placed inside the collection.- Specified by:
getNestedTypein interfaceJRParameter- Returns:
- the nested value type for this parameter,
or
nullif none set - See Also:
-
getNestedTypeName
Description copied from interface:JRParameterReturns the name of the parameter nested value type.- Specified by:
getNestedTypeNamein interfaceJRParameter- Returns:
- the name of the nested value type for this parameter,
or
nullif none set - See Also:
-
isSystemDefined
public boolean isSystemDefined()- Specified by:
isSystemDefinedin interfaceJRParameter
-
isForPrompting
public boolean isForPrompting()- Specified by:
isForPromptingin interfaceJRParameter
-
getEvaluationTime
Description copied from interface:JRParameterSpecifies when the default value expression of a parameter is evaluated.- Specified by:
getEvaluationTimein interfaceJRParameter
-
getDefaultValueExpression
- Specified by:
getDefaultValueExpressionin interfaceJRParameter
-
hasProperties
public boolean hasProperties()Description copied from interface:JRPropertiesHolderChecks whether the object has any properties.- Specified by:
hasPropertiesin interfaceJRPropertiesHolder- Returns:
- whether the object has any properties
-
getPropertiesMap
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
Description copied from interface:JRPropertiesHolderReturns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentPropertiesin interfaceJRPropertiesHolder- Returns:
- the parent properties holder, or
nullif no parent
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-