|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.connecterra.ale.dynamicconfig.api.PluginConfigParameter
public abstract class PluginConfigParameter
Models an individual parameter contained within a PluginConfig.
Contains:
PluginParameterMeta that describes
the configuration parameter.
PluginConfigParameters, if this is for a parameter group.
| Constructor Summary | |
|---|---|
PluginConfigParameter()
|
|
| Method Summary | |
|---|---|
void |
addChildParameter(PluginConfigParameter pluginConfigParameter)
Specifies the value on one child parameter. |
Boolean |
getBooleanValue()
Utility method to get the boolean value on this parameter. |
PluginConfigParameter |
getChildParameter(String keyName)
Finds and returns child parameter with the given key name. |
List |
getChildParameterList()
Returns list of PluginConfigParameter containing the child parameter values. |
abstract String |
getMetaKeyName()
Returns the key name of the PluginParameterMeta that describes the
parameter. |
Long |
getNumericValue()
Utility method to get the numeric value on this parameter. |
abstract Object |
getParameterValue()
Returns the value for the configuration parameter. |
List |
getStringListValue()
Utility method to get the string list value on this parameter. |
String |
getStringValue()
Utility method to get the string value on this parameter. |
abstract List |
getTableRows()
Returns the row entries of the table that this parameter contains. |
void |
setChildParameterList(List childParameterList)
Specifies the values on the child parameters. |
abstract void |
setParameterValue(Object paramValue)
Sets the value for the configuration parameter. |
abstract void |
setTableRows(List tableRows)
Sets the table value of this parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginConfigParameter()
| Method Detail |
|---|
public abstract String getMetaKeyName()
PluginParameterMeta that describes the
parameter.
PluginParameterMeta that describes the parameterpublic abstract Object getParameterValue()
public abstract void setParameterValue(Object paramValue)
paramValue - the value for the parameterpublic String getStringValue()
The current implementation will not return the default value if no value is specified for the parameter. It is the responsibility of the caller to get the default value, if needed.
IllegalStateException - if the parameter contains a list value instead of a stringpublic Long getNumericValue()
The current implementation will not return the default value if no value is specified for the parameter. It is the responsibility of the caller to get the default value, if needed.
IllegalStateException - if the parameter contains a list value instead of a string
NumberFormatException - if the value is not parsable as a longpublic Boolean getBooleanValue()
The current implementation will not return the default value if no value is specified for the parameter. It is the responsibility of the caller to get the default value, if needed.
IllegalStateException - if the parameter contains a list value instead of a string
or if it contains a string value that is not "true" or "false" (case insensitive)public List getStringListValue()
The current implementation will not return the default value if no value is specified for the parameter. It is the responsibility of the caller to get the default value, if needed.
IllegalStateException - if the parameter contains a non-list valuepublic abstract List getTableRows()
public abstract void setTableRows(List tableRows)
tableRows - List of table rows, where each table row is a
list of PluginConfigParameter.public List getChildParameterList()
public void setChildParameterList(List childParameterList)
childParameterList - list of child PluginConfigParameters with the
values on the child parameters
public void addChildParameter(PluginConfigParameter pluginConfigParameter)
throws DuplicateNameException
pluginConfigParameter - the PluginConfigParameter with the child parameter value
DuplicateNameException - if a PluginConfigParameter for the same key name
already exists
public PluginConfigParameter getChildParameter(String keyName)
throws NoSuchNameException
keyName - the key name of the parameter that is to be found
NoSuchNameException - if there is no child parameter with the specified key
|
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 | |||||||||