Package net.sf.jasperreports.engine.base
Class JRBaseParameter
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseParameter
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,JRChangeEventsSupport,JRCloneable,JRParameter,JRPropertiesHolder
- Direct Known Subclasses:
JRBaseCrosstabParameter,JRDesignParameter
public class JRBaseParameter extends java.lang.Object implements JRParameter, java.io.Serializable, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRExpressiondefaultValueExpressionprotected java.lang.Stringdescriptionprotected ParameterEvaluationTimeEnumevaluationTimeprotected booleanisForPromptingprotected booleanisSystemDefinedprotected java.lang.Stringnameprotected java.lang.Class<?>nestedTypeprotected java.lang.StringnestedTypeNameprotected JRPropertiesMappropertiesMapstatic java.lang.StringPROPERTY_DESCRIPTIONprotected java.lang.Class<?>valueClassprotected java.lang.StringvalueClassNameprotected java.lang.StringvalueClassRealName-
Fields 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
Constructors Modifier Constructor Description protectedJRBaseParameter()protectedJRBaseParameter(JRParameter parameter, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()JRExpressiongetDefaultValueExpression()java.lang.StringgetDescription()ParameterEvaluationTimeEnumgetEvaluationTime()Specifies when the default value expression of a parameter is evaluated.JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.java.lang.StringgetName()java.lang.Class<?>getNestedType()Returns the parameter nested value type.java.lang.StringgetNestedTypeName()Returns the name of the parameter nested value type.JRPropertiesHoldergetParentProperties()Returns the parent properties holder, whose properties are used as defaults for this object.JRPropertiesMapgetPropertiesMap()Returns this object's properties map.java.lang.Class<?>getValueClass()java.lang.StringgetValueClassName()booleanhasProperties()Checks whether the object has any properties.booleanisForPrompting()booleanisSystemDefined()voidsetDescription(java.lang.String description)
-
-
-
Field Detail
-
PROPERTY_DESCRIPTION
public static final java.lang.String PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
name
protected java.lang.String name
-
description
protected java.lang.String description
-
valueClassName
protected java.lang.String valueClassName
-
valueClassRealName
protected java.lang.String valueClassRealName
-
nestedTypeName
protected java.lang.String nestedTypeName
-
isSystemDefined
protected boolean isSystemDefined
-
isForPrompting
protected boolean isForPrompting
-
evaluationTime
protected ParameterEvaluationTimeEnum evaluationTime
-
valueClass
protected transient java.lang.Class<?> valueClass
-
nestedType
protected transient java.lang.Class<?> nestedType
-
defaultValueExpression
protected JRExpression defaultValueExpression
-
propertiesMap
protected JRPropertiesMap propertiesMap
-
-
Constructor Detail
-
JRBaseParameter
protected JRBaseParameter()
-
JRBaseParameter
protected JRBaseParameter(JRParameter parameter, JRBaseObjectFactory factory)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceJRParameter
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceJRParameter
-
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescriptionin interfaceJRParameter
-
getValueClass
public java.lang.Class<?> getValueClass()
- Specified by:
getValueClassin interfaceJRParameter
-
getValueClassName
public java.lang.String getValueClassName()
- Specified by:
getValueClassNamein interfaceJRParameter
-
getNestedType
public java.lang.Class<?> 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:
JRParameter.getValueClass()
-
getNestedTypeName
public java.lang.String 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:
JRParameter.getNestedType()
-
isSystemDefined
public boolean isSystemDefined()
- Specified by:
isSystemDefinedin interfaceJRParameter
-
isForPrompting
public boolean isForPrompting()
- Specified by:
isForPromptingin interfaceJRParameter
-
getEvaluationTime
public ParameterEvaluationTimeEnum getEvaluationTime()
Description copied from interface:JRParameterSpecifies when the default value expression of a parameter is evaluated.- Specified by:
getEvaluationTimein interfaceJRParameter
-
getDefaultValueExpression
public JRExpression 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
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder 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
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classjava.lang.Object
-
getEventSupport
public JRPropertyChangeSupport 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
-
-