Expresso 5-6

com.jcorporate.expresso.kernel.metadata
Class SimpleProperty

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

public class SimpleProperty
extends Property

Metadata class that represents a simple property for an Expresso component

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

Constructor Summary
SimpleProperty()
          Default Constructor
 
Method Summary
 void addValidValue(String key, String value)
          Add a valid value for the property
 Configuration createConfigBean(DefaultConfigBean targetBean, ComponentConfig config, ComponentMetadata metadata)
          Load the configBean with values for this property.
 String getValue()
          Retrieve the value of the property
 List retrieveValidValues()
          Retrieve a list of valid values for this particular property.
 void setValue(String value)
          Set the value of the property
 
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

SimpleProperty

public SimpleProperty()
Default Constructor

Method Detail

setValue

public void setValue(String value)
Set the value of the property

Parameters:
value - java.lang.String

getValue

public String getValue()
Retrieve the value of the property

Returns:
java.lang.String

addValidValue

public void addValidValue(String key,
                          String value)
Add a valid value for the property

Parameters:
key - the 'key' or internal value
value - the friendly value to be displayed in management systems.

retrieveValidValues

public List retrieveValidValues()
Retrieve a list of valid values for this particular property.

Returns:
List of valid value objects

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.