| org.geotools.parameter.DefaultParameterDescriptor org.geotools.referencing.operation.projection.ModifiedParameterDescriptor
ModifiedParameterDescriptor | final class ModifiedParameterDescriptor extends DefaultParameterDescriptor (Code) | | A parameter descriptor identical to the supplied one except for the
default value. The constructor expects a model created by one of the
, usually using some neutral default value. For example the base class for
map projection providers defines a set of
. However some map projections are specific to a
particular area (for example the
and may wish to override the neutral default values with some default value appropriate
for that area.
version: $Id: ModifiedParameterDescriptor.java 22474 2006-10-31 00:58:59Z desruisseaux $ author: Martin Desruisseaux |
Constructor Summary | |
public | ModifiedParameterDescriptor(ParameterDescriptor original, double defaultValue) Creates a parameter descriptor wrapping the specified one with the specified
default value. |
Method Summary | |
public static boolean | contains(Collection set, ParameterDescriptor descriptor) Returns
true if the specified collection contains the specified descriptor. | public Object | getDefaultValue() Returns the default value for the parameter. |
ModifiedParameterDescriptor | public ModifiedParameterDescriptor(ParameterDescriptor original, double defaultValue)(Code) | | Creates a parameter descriptor wrapping the specified one with the specified
default value.
|
contains | public static boolean contains(Collection set, ParameterDescriptor descriptor)(Code) | | Returns
true if the specified collection contains the specified descriptor. Invoking
this method is similar to invoking
set.contains(descriptor) , except that instance of
ModifiedParameterDescriptor are unwrapped to their original descriptor. The drawback
is that this method is slower than
set.contains(descriptor) , so it should be invoked
only if the former fails.
|
getDefaultValue | public Object getDefaultValue()(Code) | | Returns the default value for the parameter.
|
|
|