| java.lang.Object org.jfree.report.util.ReportParameters
ReportParameters | final public class ReportParameters implements Serializable,Cloneable(Code) | | The report parameters collection is a map with string keys. The parameters
can be used in a query and will appear as part of the datarow.
author: Thomas Morgner |
Method Summary | |
public void | clear() Removes all properties stored in this collection. | public Object | clone() Clones the properties. | public boolean | containsKey(String key) Checks whether the given key is stored in this collection of ReportProperties.
Parameters: key - the property key. | public Object | get(String key) Retrieves the value stored for a key in this properties collection.
Parameters: key - the property key. | public Object | get(String key, Object defaultValue) Retrieves the value stored for a key in this properties collection, and returning the
default value if the key was not stored in this properties collection.
Parameters: key - the property key. Parameters: defaultValue - the default value to be returned when the key is not stored inthis properties collection. | public String[] | keys() Returns all property keys as array. | public void | put(String key, Object value) Adds a property to this properties collection. | public int | size() |
ReportParameters | public ReportParameters(ReportParameters props)(Code) | | Copy constructor.
Parameters: props - an existing ReportProperties instance. |
ReportParameters | public ReportParameters()(Code) | | Default constructor.
|
clear | public void clear()(Code) | | Removes all properties stored in this collection.
|
containsKey | public boolean containsKey(String key)(Code) | | Checks whether the given key is stored in this collection of ReportProperties.
Parameters: key - the property key. true, if the given key is known. |
get | public Object get(String key)(Code) | | Retrieves the value stored for a key in this properties collection.
Parameters: key - the property key. The stored value, or null if the key does not exist in thiscollection. |
get | public Object get(String key, Object defaultValue)(Code) | | Retrieves the value stored for a key in this properties collection, and returning the
default value if the key was not stored in this properties collection.
Parameters: key - the property key. Parameters: defaultValue - the default value to be returned when the key is not stored inthis properties collection. The stored value, or the default value if the key does not exist in thiscollection. |
keys | public String[] keys()(Code) | | Returns all property keys as array.
an enumeration of the property keys. |
put | public void put(String key, Object value)(Code) | | Adds a property to this properties collection. If a property with the given name
exist, the property will be replaced with the new value. If the value is null, the
property will be removed.
Parameters: key - the property key. Parameters: value - the property value. |
|
|