public class Parameter
extends java.lang.Object
implements java.io.Serializable
name
and value
properties and a bean-like interface to access them. This class is used by
the Configuration
to load arbitrary configuration parameters using
the Apache digester.
Parameter values are always treated as strings and are returned as such
from the Configuration.getParameter(java.lang.String)
method. Callers must further
process/parse this data if different types are required.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
Name which uniquely identifies this parameter within configuration
|
private java.lang.String |
value
Value of the parameter
|
Constructor and Description |
---|
Parameter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get name which uniquely identifies this parameter within the
configuration.
|
java.lang.String |
getValue()
Get parameter's value.
|
void |
setName(java.lang.String name)
Set name which uniquely identifies this parameter within the
configuration.
|
void |
setValue(java.lang.String value)
Set this parameter's value.
|
private java.lang.String name
private java.lang.String value
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Parameter name.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- Parameter value as read from configuration document.