org.geotools.data.wfs
Class WFSDataStoreFactory.WFSFactoryParam<T>
Object
Parameter
DataAccessFactory.Param
WFSDataStoreFactory.WFSFactoryParam<T>
- All Implemented Interfaces:
- Parameter
- 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
Fields inherited from class Parameter |
CRS, description, ELEMENT, EXT, FEATURE_TYPE, IS_LARGE_TEXT, IS_PASSWORD, key, LENGTH, LEVEL, MAX, maxOccurs, metadata, MIN, minOccurs, OPTIONS, 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<T> type,
String description)
- Creates a required parameter
- Parameters:
key
- type
- description
-
WFSDataStoreFactory.WFSFactoryParam
public WFSDataStoreFactory.WFSFactoryParam(String key,
Class<T> type,
String description,
T defaultValue)
- Creates an optional parameter with the supplied default value
- Parameters:
key
- type
- description
- required
-
WFSDataStoreFactory.WFSFactoryParam
public WFSDataStoreFactory.WFSFactoryParam(String key,
Class<T> type,
String description,
T defaultValue,
Object... metadata)
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-2014 Geotools. All Rights Reserved.