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:
java.util.Collection, java.util.List

public class AutodefiningParameters
extends Parameters

If there is not 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.2.2.1 2004/06/01 12:26:56 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Parameter

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 hasParameter(Parameter param)
          Checks wether a certain parameter is available.
 Parameters set(java.lang.String arg, java.lang.Object value)
          Sets the value of an argument, and grows the definition array.
 
Methods inherited from class org.mmbase.util.functions.Parameters
checkRequiredParameters, define, get, get, get, get, getString, getString, isAutoCasting, set, set, setAll, setAutoCasting, setIfDefined, size, toClassArray, toMap, toString
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
 
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
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, subList, toArray, toArray
 

Constructor Detail

AutodefiningParameters

public AutodefiningParameters()
Method Detail

set

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

Overrides:
set in class Parameters

hasParameter

public boolean hasParameter(Parameter param)
Description copied from class: Parameters
Checks wether a certain parameter is available.

Overrides:
hasParameter in class Parameters


MMBase build 1.7.1.20041002