Package org.apache.stylebook
Interface Parameters
- All Known Subinterfaces:
CreationContext
- All Known Implementing Classes:
BasicContext
,BasicEntry
,BasicParameters
,NodeListParameters
public interface Parameters
- 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.
-
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.
-
Method Details
-
getParameter
Retrieve a value for a specified parameter.- 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.- Parameters:
name
- The parameter name.def
- The parameter default value.- Returns:
- The parameter value or def if the parameter has no specified value.
-
getParameterNames
Enumeration getParameterNames()Get all valid parameter names.- Returns:
- A non-null (maybe empty) Enumeration.
-
setParameter
Set or update parameter value.- Returns:
- The old value of the parameter or null.
-
merge
Merge the values from another Parameters object into this instance.- Parameters:
p
- The Parameters object from wich values must be retrieved.
-