Package net.sf.jasperreports.engine.base
Class JRBaseScriptlet
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseScriptlet
-
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRCloneable,JRPropertiesHolder,JRScriptlet
- Direct Known Subclasses:
JRDesignScriptlet
public class JRBaseScriptlet extends Object implements JRScriptlet, Serializable, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected Stringnameprotected JRPropertiesMappropertiesMapstatic StringPROPERTY_DESCRIPTIONprotected Class<?>valueClassprotected StringvalueClassNameprotected StringvalueClassRealName-
Fields inherited from interface net.sf.jasperreports.engine.JRScriptlet
SCRIPTLET_PARAMETER_NAME_SUFFIX
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRBaseScriptlet()protectedJRBaseScriptlet(JRScriptlet scriptlet, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()StringgetDescription()JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.StringgetName()JRPropertiesHoldergetParentProperties()Returns the parent properties holder, whose properties are used as defaults for this object.JRPropertiesMapgetPropertiesMap()Returns this object's properties map.JRPropertyExpression[]getPropertyExpressions()Returns the list of dynamic/expression-based properties for this scriptlet.Class<?>getValueClass()StringgetValueClassName()booleanhasProperties()Checks whether the object has any properties.voidsetDescription(String description)
-
-
-
Field Detail
-
PROPERTY_DESCRIPTION
public static final String PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
name
protected String name
-
description
protected String description
-
valueClassName
protected String valueClassName
-
valueClassRealName
protected String valueClassRealName
-
valueClass
protected transient Class<?> valueClass
-
propertiesMap
protected JRPropertiesMap propertiesMap
-
-
Constructor Detail
-
JRBaseScriptlet
protected JRBaseScriptlet()
-
JRBaseScriptlet
protected JRBaseScriptlet(JRScriptlet scriptlet, JRBaseObjectFactory factory)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceJRScriptlet
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceJRScriptlet
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceJRScriptlet
-
getValueClass
public Class<?> getValueClass()
- Specified by:
getValueClassin interfaceJRScriptlet
-
getValueClassName
public String getValueClassName()
- Specified by:
getValueClassNamein interfaceJRScriptlet
-
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
-
getPropertyExpressions
public JRPropertyExpression[] getPropertyExpressions()
Description copied from interface:JRScriptletReturns the list of dynamic/expression-based properties for this scriptlet.- Specified by:
getPropertyExpressionsin interfaceJRScriptlet- Returns:
- an array containing the expression-based properties of this scriptlet
-
clone
public Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
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
-
-