Expresso 5-6

com.jcorporate.expresso.kernel.metadata
Class Property

java.lang.Object
  extended bycom.jcorporate.expresso.kernel.metadata.Property
Direct Known Subclasses:
IndexedProperty, MappedProperty, SimpleProperty

public abstract class Property
extends Object

Class that represents a parsed property from the expresso-services.xml file

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

Constructor Summary
Property()
          Default constructor
 
Method Summary
abstract  Configuration createConfigBean(DefaultConfigBean configBean, ComponentConfig config, ComponentMetadata metadata)
          Override in subclasses.
 String getAccess()
          Retrieve the access of this property
 String getDescription()
          Retrieve the description for this property.
 String getName()
          Retrieve the name of the property
 String getType()
          Retrieve the java type of this property
 void setAccess(String access)
          Set the access of this property.
 void setDescription(String description)
          Set a description of this property
 void setName(String name)
          Set the name of the property
 void setType(String type)
          Sets the type of the property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property()
Default constructor

Method Detail

getName

public String getName()
Retrieve the name of the property

Returns:
java.lang.String

setName

public void setName(String name)
Set the name of the property

Parameters:
name - the name of the property

setType

public void setType(String type)
Sets the type of the property

Parameters:
type - the Java type of this property. Example: java.lang.String

getType

public String getType()
Retrieve the java type of this property

Returns:
java.lang.String the class name type for this property

setAccess

public void setAccess(String access)
Set the access of this property. (Read|Write|ReadWrite)

Parameters:
access - the Access of this property

getAccess

public String getAccess()
Retrieve the access of this property

Returns:
java.lang.String

setDescription

public void setDescription(String description)
Set a description of this property

Parameters:
description - the friendly description of this property.

getDescription

public String getDescription()
Retrieve the description for this property. This description will be used in Management programs to describe the property to the user.

Returns:
java.lang.String

createConfigBean

public abstract Configuration createConfigBean(DefaultConfigBean configBean,
                                               ComponentConfig config,
                                               ComponentMetadata metadata)
Override in subclasses. 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

Parameters:
configBean - 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.