|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface PluginParameterMeta
Describes a configuration parameter of a plugin. A parameter represented by PluginParameterMeta has the following attributes:
A PluginParameterMeta may represent a group of parameters. For example, all configuration parameters for a subdevice may be grouped together. In this case, the PluginParameterMeta representing the parameter group will have child parameters, each of which will represent one configuration parameter of the subdevice.
Complex parameters like tables are also supported by PluginParameterMeta. This is treated as a separate group from the child parameters and have separate accessor methods.
| Nested Class Summary | |
|---|---|
static interface |
PluginParameterMeta.Type
Supported parameter types. |
| Method Summary | |
|---|---|
void |
addChildParameterMeta(PluginParameterMeta parameterMeta)
Adds a parameter to this parameter's child parameter list. |
PluginParameterMeta |
getChildParameterMeta(String keyName)
Finds and returns the child parameter with the given key. |
List |
getChildParameterMetaList()
Returns the child parameters as a list of PluginParameterMeta. |
Object |
getDefaultParameterValue()
Returns the default value for this parameter. |
String |
getDescription()
Returns a short description of the parameter. |
String |
getDisplayName()
Returns the display name of this parameter. |
String |
getKeyName()
Returns the unique key name that identifies this parameter from its siblings. |
PluginParameterConstraint |
getParameterConstraint()
Returns PluginParameterConstraint for additional constraints, if any,
on the parameter. |
PluginParameterMeta |
getTableColumnParameterMeta(String keyName)
Finds and returns the table column parameter with the given key name. |
List |
getTableColumnParameterMetaList()
Returns list of parameter metas for the columns of the table that this parameter could contain. |
String |
getType()
Returns the PluginParameterMeta.Type identifying the data type of the parameter. |
boolean |
hasMultipleValues()
Returns true is this parameter may have multiple values, false otherwise. |
boolean |
isRequired()
Returns true if this is a required parameter, false otherwise. |
void |
setChildParameterMetaList(List parameterMetaList)
Sets the child parameters of this parameter. |
void |
setDefaultParameterValue(Object value)
Specifies the default value for this parameter. |
void |
setDescription(String description)
Specifies a short description for the parameter. |
void |
setHasMultipleValues(boolean hasMultiple)
Specifies whether this parameter may have multiple values. |
void |
setParameterConstraint(PluginParameterConstraint parameterConstraint)
Specifies additional constraints on values of this parameter through a PluginParameterConstraint. |
void |
setRequired(boolean required)
Specifies if this is a required or optional parameter. |
void |
setTableColumnParameterMetaList(List columnMetas)
Sets the column parameter metas for the table that this parameter could contain. |
void |
validate(StringBuffer buffer,
PluginConfigParameter configParameter)
Validates a PluginConfigParameter containing a value for this parameter. |
| Method Detail |
|---|
String getKeyName()
String getDisplayName()
String getType()
PluginParameterMeta.Type identifying the data type of the parameter.
PluginParameterMeta.Type of the parameterString getDescription()
void setDescription(String description)
description - a short description of the parameterboolean isRequired()
void setRequired(boolean required)
required - boolean indicating if this is a required parameter. Pass in true if this is a required parameter, false otherwise.boolean hasMultipleValues()
void setHasMultipleValues(boolean hasMultiple)
hasMultiple - boolean indicating if this parameter may have multiple values.
Pass in true if this parameter could have multiple values. False if
this parameter must have only one value.Object getDefaultParameterValue()
void setDefaultParameterValue(Object value)
value - the default valuePluginParameterConstraint getParameterConstraint()
PluginParameterConstraint for additional constraints, if any,
on the parameter. This returns null if the
parameter has no additional constraints.
Numeric value must be in a given range is an example of a constraint that
may be enforced by PluginParameterConstraint.
PluginParameterConstraint representing additional constraints, if any,
on the parametervoid setParameterConstraint(PluginParameterConstraint parameterConstraint)
PluginParameterConstraint.
parameterConstraint - PluginParameterConstraint that enforces
additional constraints on values of this parameterList getChildParameterMetaList()
PluginParameterMeta.
Returns empty list of this parameter does not have any children.
A parameter will have child parameters if it represents a parameter group.
PluginParameterMeta.
Returns empty list of this parameter does not have any children.void setChildParameterMetaList(List parameterMetaList)
parameterMetaList - list of PluginParameterMeta for the child
parametersvoid addChildParameterMeta(PluginParameterMeta parameterMeta)
parameterMeta - the new child parameter that is to be added to this parameter's
child list
PluginParameterMeta getChildParameterMeta(String keyName)
throws NoSuchNameException
keyName - the key name of the child parameter that is to be found
NoSuchNameException - if this parameter does not have a child parameter
with the given keyList getTableColumnParameterMetaList()
PluginParameterMeta getTableColumnParameterMeta(String keyName)
throws NoSuchNameException
keyName - the key name of the column parameter that is to be found
NoSuchNameException - if this parameter does not have a table column with the
given namevoid setTableColumnParameterMetaList(List columnMetas)
columnMetas - list of PluginParameterMeta for the table columns
IllegalArgumentException - if any types disallowed for table columns are used.
Only string and numeric types are allowed currently
void validate(StringBuffer buffer,
PluginConfigParameter configParameter)
PluginConfigParameter containing a value for this parameter.
This will validate the value specified for this parameter based on required and
has-multiple attributes as well as using any parameter constraints specified. This
will also recurse through all its children parameters and table parameters to
validate that the values specified on those are valid as well.
buffer - Validation error messages, if any, will be appended in to this
string buffer.configParameter - the PluginConfigParameter containing the value for this
parameter
|
Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||