org.geotools.data.wfs
Class WFSDataStoreFactory.WFSFactoryParam<T>
Object
Parameter
DataAccessFactory.Param
WFSDataStoreFactory.WFSFactoryParam<T>
- Enclosing class:
- WFSDataStoreFactory
public static class WFSDataStoreFactory.WFSFactoryParam<T>
- extends DataAccessFactory.Param
A WFSDataStoreFactory.WFSFactoryParam
subclass that allows to provide a default value to the lookUp method.
- Since:
- 2.5.x
- Author:
- Gabriel Roldan
- Module:
Fields inherited from class Parameter |
CRS, description, ELEMENT, EXT, FEATURE_TYPE, IS_PASSWORD, key, LENGTH, LEVEL, MAX, maxOccurs, metadata, MIN, minOccurs, required, sample, title, type |
Method Summary |
T |
lookUp(Map params)
Lookup Param in a user supplied map. |
WFSDataStoreFactory.WFSFactoryParam
public WFSDataStoreFactory.WFSFactoryParam(String key,
Class type,
String description)
- Creates a required parameter
- Parameters:
key
- type
- description
-
WFSDataStoreFactory.WFSFactoryParam
public WFSDataStoreFactory.WFSFactoryParam(String key,
Class type,
String description,
T defaultValue)
- Creates an optional parameter with the supplied default value
- Parameters:
key
- type
- description
- required
-
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 class DataAccessFactory.Param
- Parameters:
params
- Map of user input
- Returns:
- Parameter as specified in map
- Throws:
IOException
- if parse could not handle value
Copyright © 1996-2009 Geotools. All Rights Reserved.