org.mmbase.util.functions
Class AutodefiningParameters

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byorg.mmbase.util.functions.Parameters
              extended byorg.mmbase.util.functions.AutodefiningParameters
All Implemented Interfaces:
Collection, List, Serializable

public class AutodefiningParameters
extends Parameters

If there is no Parameter definition array available you could try it with this specialization, which does not need one. You loose al checking on type and availability. It should only be used as a last fall back and accompanied by warnings.

Since:
MMBase-1.7
Version:
$Id: AutodefiningParameters.java,v 1.9 2005/10/18 21:51:30 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Parameter, Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.util.functions.Parameters
autoCasting, backing, definition, VOID
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AutodefiningParameters()
           
 
Method Summary
 boolean containsParameter(Parameter param)
          Checks wether a certain parameter is available, using the Parameter as a qualifier.
 Parameters set(String arg, Object value)
          Sets the value of an argument, and grows the definition array.
 
Methods inherited from class org.mmbase.util.functions.Parameters
checkRequiredParameters, containsParameter, get, get, get, getDefinition, getString, getString, indexOfParameter, indexOfParameter, isAutoCasting, set, set, setAll, setAll, setAutoCasting, setIfDefined, setIfDefined, size, subList, toClassArray, toMap, toString
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

AutodefiningParameters

public AutodefiningParameters()
Method Detail

set

public Parameters set(String arg,
                      Object value)
Sets the value of an argument, and grows the definition array.

Overrides:
set in class Parameters
Parameters:
arg - the name of the parameter to set
value - the object value to set

containsParameter

public boolean containsParameter(Parameter param)
Description copied from class: Parameters
Checks wether a certain parameter is available, using the Parameter as a qualifier.

Overrides:
containsParameter in class Parameters
Parameters:
param - the parameter
Returns:
true if a parameter exists.


MMBase build 1.8.1.20060716