Package org.apache.stylebook
Class BasicParameters
java.lang.Object
org.apache.stylebook.BasicParameters
- All Implemented Interfaces:
Parameters
- Direct Known Subclasses:
BasicContext
,NodeListParameters
- Version:
- CVS $Revision: 313195 $ $Date: 1999-11-15 22:08:18 +0000 (Mon, 15 Nov 1999) $
- Author:
- Pierpaolo Fumagalli, Copyright 1999 © The Apache Software Foundation. All rights reserved.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetParameter
(String name) Retrieve a value for a specified parameter.getParameter
(String name, String def) Retrieve a value for a specified parameter.Get all valid parameter names.merge
(Parameters p) Merge the values from another Parameters object into this instance.setParameter
(String name, String value) Set or update parameter value.
-
Constructor Details
-
BasicParameters
public BasicParameters()
-
-
Method Details
-
getParameter
Retrieve a value for a specified parameter.- Specified by:
getParameter
in interfaceParameters
- Parameters:
name
- The parameter name.- Returns:
- The parameter value or null if the parameter has no specified value.
-
getParameter
Retrieve a value for a specified parameter.- Specified by:
getParameter
in interfaceParameters
- Parameters:
name
- The parameter name.def
- The parameter default value.- Returns:
- The parameter value or def if the parameter has no specified value.
-
getParameterNames
Get all valid parameter names.- Specified by:
getParameterNames
in interfaceParameters
- Returns:
- A non-null (maybe empty) Enumeration.
-
setParameter
Set or update parameter value.- Specified by:
setParameter
in interfaceParameters
- Returns:
- The old value of the parameter or null.
-
merge
Merge the values from another Parameters object into this instance.- Specified by:
merge
in interfaceParameters
- Parameters:
p
- The Parameters object from wich values must be retrieved.
-