org.geotools.data.wfs
Class WFSDataStoreFactory.WFSFactoryParam<T>
java.lang.Object
org.geotools.data.Parameter
org.geotools.data.DataAccessFactory.Param
org.geotools.data.wfs.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
- Version:
- $Id: WFSDataStoreFactory.java 35428 2010-05-09 14:23:07Z jive $
- Author:
- Gabriel Roldan
Fields inherited from class org.geotools.data.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(java.util.Map params)
Lookup Param in a user supplied map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WFSDataStoreFactory.WFSFactoryParam
public WFSDataStoreFactory.WFSFactoryParam(java.lang.String key,
java.lang.Class type,
java.lang.String description)
- Creates a required parameter
- Parameters:
key
- type
- description
-
WFSDataStoreFactory.WFSFactoryParam
public WFSDataStoreFactory.WFSFactoryParam(java.lang.String key,
java.lang.Class type,
java.lang.String description,
T defaultValue)
- Creates an optional parameter with the supplied default value
- Parameters:
key
- type
- description
- required
-
WFSDataStoreFactory.WFSFactoryParam
public WFSDataStoreFactory.WFSFactoryParam(java.lang.String key,
java.lang.Class type,
java.lang.String description,
T defaultValue,
java.lang.Object... metadata)
lookUp
public T lookUp(java.util.Map params)
throws java.io.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:
java.io.IOException
- if parse could not handle value
Copyright © 1996-2010 Geotools. All Rights Reserved.