|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nitido.util.OpenParameterContainer
public class OpenParameterContainer
The OpenParameterContainer class is used to store a series of multi-valued name/value pair String objects.
| Field Summary | |
|---|---|
protected OpenHash |
pairs
|
| Constructor Summary | |
|---|---|
OpenParameterContainer()
Empty constructor. |
|
OpenParameterContainer(java.util.Hashtable hash)
Construct an OpenParameterContainer using the contents of a Hashtable. |
|
OpenParameterContainer(OpenHash hash)
Construct an OpenParameterContainer using the contents of an OpenHash. |
|
OpenParameterContainer(OpenParameterList list)
Construct a OpenParameterContainer using the contents of an OpenParameterList. |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all parameters from this container. |
java.lang.String |
getParameter(java.lang.String name)
Returns the first instance of 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. |
java.util.Enumeration |
getParameters(java.lang.String name)
Returns an Enumeration of all of the values matching the specified name. |
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 all values that match the specified parameter. |
void |
removeParameter(java.lang.String name,
java.lang.String value)
Removes the name/value pair specified. |
int |
size()
Returns the size of the parameter list. |
java.lang.String |
toString()
Utility method for displaying the content of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected OpenHash pairs
| Constructor Detail |
|---|
public OpenParameterContainer()
public OpenParameterContainer(OpenParameterList list)
list - The OpenParameterList object whose values are copied into this
container.public OpenParameterContainer(OpenHash hash)
hash - The OpenHash whose values are copied into this container.public OpenParameterContainer(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 OpenParameterListgetParameter in interface ParameterListname - The name of the parameter whose value is to be returned.
public java.util.Enumeration getParameters(java.lang.String name)
getParameters in interface OpenParameterListname - The name of the set of values to return.
public java.util.Enumeration getParameterNames()
getParameterNames in interface ParameterListpublic java.util.Enumeration getParameterNameSet(java.lang.String startsWith)
getParameterNameSet in interface ParameterListstartsWith - 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 int size()
size in interface ParameterListpublic void removeParameter(java.lang.String name)
name - The name of the parameter to remove from this container.
public void removeParameter(java.lang.String name,
java.lang.String value)
name - The name in the name/value pair to remove.value - The value in the name/value pair to remove.public java.lang.String toString()
toString in class java.lang.Object
|
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.