|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.util.ParameterContainer
public class ParameterContainer
The ParameterContainer class is used to store a series of name/value pair String objects.
Field Summary | |
---|---|
protected java.util.Hashtable |
pairs
|
Constructor Summary | |
---|---|
ParameterContainer()
Empty constructor. |
|
ParameterContainer(java.util.Hashtable hash)
Construct a ParameterContainer using the contents of a Hashtable. |
|
ParameterContainer(ParameterList list)
Construct a ParameterContainer using the contents of a ParameterList. |
Method Summary | |
---|---|
void |
clear()
Removes all parameters from this container. |
java.lang.String |
getParameter(java.lang.String name)
Returns the specified parameter. |
java.util.Enumeration |
getParameterNames()
Returns an Enumeration of the names of the parameters in this container. |
java.util.Enumeration |
getParameterNameSet(java.lang.String startsWith)
Returns an Enumeration of names of parameters that start with the specified attribute. |
void |
putParameter(java.lang.String name,
java.lang.String value)
Inserts a name/value parameter pair into the container. |
void |
removeParameter(java.lang.String name)
Removes a specified parameter. |
int |
size()
Returns the size of the parameter list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Hashtable pairs
Constructor Detail |
---|
public ParameterContainer()
public ParameterContainer(ParameterList list)
list
- The ParameterList object whose values are copied into this
container.public ParameterContainer(java.util.Hashtable hash)
hash
- The Hashtable whose values are copied into this container.Method Detail |
---|
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface ParameterList
name
- The name of the parameter whose value is to be returned.
public java.util.Enumeration getParameterNames()
getParameterNames
in interface ParameterList
public java.util.Enumeration getParameterNameSet(java.lang.String startsWith)
getParameterNameSet
in interface ParameterList
startsWith
- A String specifying to match parameter names against.
public void putParameter(java.lang.String name, java.lang.String value)
name
- The name of the parameter.value
- The value of the parameter.public void clear()
public void removeParameter(java.lang.String name)
name
- The name of the parameter to remove from this container.public int size()
size
in interface ParameterList
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.