Package org.geotools.data.wfs.impl
Class WFSDataAccessFactory.WFSFactoryParam<T>
- Object
-
- Parameter
-
- DataAccessFactory.Param
-
- WFSFactoryParam<T>
-
- All Implemented Interfaces:
Parameter
- Enclosing class:
- WFSDataAccessFactory
public static class WFSDataAccessFactory.WFSFactoryParam<T> extends DataAccessFactory.Param
ADataAccessFactory.Param
subclass that allows us to provide a default value to the lookUp method.
-
-
Field Summary
-
Fields inherited from class Parameter
CRS, DEPRECATED, description, ELEMENT, EXT, FEATURE_TYPE, IS_LARGE_TEXT, IS_PASSWORD, key, LENGTH, LEVEL, MAX, maxOccurs, metadata, MIN, minOccurs, OPTIONS, required, sample, title, type
-
-
Constructor Summary
Constructors Constructor Description WFSFactoryParam(String key, Class<T> type, String title, String description)
Creates a required parameterWFSFactoryParam(String key, Class<T> type, String title, String description, T defaultValue)
Creates an optional parameter with the supplied default valueWFSFactoryParam(String key, Class<T> type, String title, String description, T defaultValue, Object... metadata)
WFSFactoryParam(String key, Class<T> type, String title, String description, T defaultValue, String level)
Creates an optional parameter with the supplied default value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
lookUp(Map params)
Lookup Param in a user supplied map.-
Methods inherited from class DataAccessFactory.Param
handle, parse, text, toString
-
Methods inherited from class Parameter
equals, getDefaultValue, getDescription, getLevel, getMaxOccurs, getMinOccurs, getName, getTitle, getType, hashCode, isDeprecated, isPassword, isRequired
-
-
-
-
Constructor Detail
-
WFSFactoryParam
public WFSFactoryParam(String key, Class<T> type, String title, String description)
Creates a required parameter
-
WFSFactoryParam
public WFSFactoryParam(String key, Class<T> type, String title, String description, T defaultValue)
Creates an optional parameter with the supplied default value
-
WFSFactoryParam
public WFSFactoryParam(String key, Class<T> type, String title, String description, T defaultValue, String level)
Creates an optional parameter with the supplied default value
-
-
Method Detail
-
lookUp
public T lookUp(Map params) throws IOException
Description copied from class:DataAccessFactory.Param
Lookup Param in a user supplied map.Type conversion will occur if required, this may result in an IOException. An IOException will be throw in the Param is required and the Map does not contain the Map.
The handle method is used to process the user's value.
- Overrides:
lookUp
in classDataAccessFactory.Param
- Parameters:
params
- Map of user input- Returns:
- Parameter as specified in map
- Throws:
IOException
- if parse could not handle value
-
-