org.globus.mds.webmds
Class ParameterMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.globus.mds.webmds.ParameterMap
All Implemented Interfaces:
Cloneable, Map, Serializable

public class ParameterMap
extends HashMap

See Also:
Serialized Form

Constructor Summary
ParameterMap()
           
 
Method Summary
 String debugKeyString()
           
 ParameterMap prefixedSubMap(String prefix)
          prefixedSubMap -- takes a parameter set, finds the subset whose names start with "prefix.", and returns a set that contains those parameters, with the "prefix." stripped off their names.
 Object put(Object key, Object value)
           
 Object putParameter(Parameter param)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ParameterMap

public ParameterMap()
Method Detail

put

public Object put(Object key,
                  Object value)

putParameter

public Object putParameter(Parameter param)
                    throws ParameterMapException
Throws:
ParameterMapException

prefixedSubMap

public ParameterMap prefixedSubMap(String prefix)
                            throws ParameterMapException
prefixedSubMap -- takes a parameter set, finds the subset whose names start with "prefix.", and returns a set that contains those parameters, with the "prefix." stripped off their names. For example, if a parameter map contained these parameters: {"abc", {"abc", "def"}}, {"foo.x", {"foo.x", "x1"}}, {"foo.y", {"foo.y", "y1"}}, {"foosball", {"foosball", "hello"}} prefixedSubMap("foo") would return a map containing {"x", {"x", "x1"}} and {"y", {"y", "y1"}}.

Parameters:
prefix - the prefix to search for.
Throws:
ParameterMapException

debugKeyString

public String debugKeyString()
                      throws ParameterMapException
Throws:
ParameterMapException


Copyright © 1999-2006 University of Chicago. All rights reserved.