net.sf.jasperreports.engine
Class JRPropertiesMap

java.lang.Object
  extended by net.sf.jasperreports.engine.JRPropertiesMap
All Implemented Interfaces:
java.io.Serializable

public class JRPropertiesMap
extends java.lang.Object
implements java.io.Serializable

Properties map of an JR element.

The order of the properties (obtained by getPropertyNames() is the same as the order in which the properties were added.

Version:
$Id: JRPropertiesMap.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
Serialized Form

Constructor Summary
JRPropertiesMap()
          Creates a properties map.
JRPropertiesMap(JRPropertiesMap propertiesMap)
          Clones a properties map.
 
Method Summary
 java.lang.String getProperty(java.lang.String propName)
          Returns the value of a property.
 java.lang.String[] getPropertyNames()
          Returns the names of the properties.
 void removeProperty(java.lang.String propName)
          Removes a property.
 void setProperty(java.lang.String propName, java.lang.String value)
          Adds/sets a property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRPropertiesMap

public JRPropertiesMap()
Creates a properties map.


JRPropertiesMap

public JRPropertiesMap(JRPropertiesMap propertiesMap)
Clones a properties map.

Parameters:
propertiesMap - the original properties map
Method Detail

getPropertyNames

public java.lang.String[] getPropertyNames()
Returns the names of the properties.

Returns:
the names of the properties

getProperty

public java.lang.String getProperty(java.lang.String propName)
Returns the value of a property.

Parameters:
propName - the name of the property
Returns:
the value

setProperty

public void setProperty(java.lang.String propName,
                        java.lang.String value)
Adds/sets a property value.

Parameters:
propName - the name of the property
value - the value of the property

removeProperty

public void removeProperty(java.lang.String propName)
Removes a property.

Parameters:
propName - the property name


© 2001-2006 JasperSoft Corporation www.jaspersoft.com