Expresso 5-6

com.jcorporate.expresso.kernel.metadata
Class MappedProperty

java.lang.Object
  extended bycom.jcorporate.expresso.kernel.metadata.Property
      extended bycom.jcorporate.expresso.kernel.metadata.MappedProperty

public class MappedProperty
extends Property

Metadata class that represents a MappedProperty

Since:
Expresso 5.1
Version:
$Revision: 1.6 $ on $Date: 2004/11/17 20:48:17 $
Author:
Michael Rimov

Constructor Summary
MappedProperty()
          Default constructor
 
Method Summary
 Configuration createConfigBean(DefaultConfigBean targetBean, ComponentConfig config, ComponentMetadata metadata)
          Load the configBean with values for this property.
 String getMappedValue(String key)
          Retrieve the value of the mapped property.
 Map getValues()
          Retrieve a list of all mapped property values.
 void setMappedValue(String key, String value)
          Set the Mapped property's value
 
Methods inherited from class com.jcorporate.expresso.kernel.metadata.Property
getAccess, getDescription, getName, getType, setAccess, setDescription, setName, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedProperty

public MappedProperty()
Default constructor

Method Detail

setMappedValue

public void setMappedValue(String key,
                           String value)
Set the Mapped property's value

Parameters:
key - the key of the mapped property.
value - the value of the mapped property

getMappedValue

public String getMappedValue(String key)
Retrieve the value of the mapped property.

Parameters:
key - the key of the mapped property
Returns:
java.lang.String

getValues

public Map getValues()
Retrieve a list of all mapped property values.

Returns:
java.util.map

createConfigBean

public Configuration createConfigBean(DefaultConfigBean targetBean,
                                      ComponentConfig config,
                                      ComponentMetadata metadata)
Load the configBean with values for this property. If there are any values present in the ComponentConfig, then use those properties, if empty, use your own default values as specified in the ComponentMetadata

Specified by:
createConfigBean in class Property
Parameters:
targetBean - The configBean to populate with this property.
config - the current configuration as loaded from the expresso config.xml file
metadata - the current metadata for this component
Returns:
the Configuration interface (actually uslaly the configbean parameter)

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.