org.geotools.data.wfs
Class WFSDataStoreFactory.WFSFactoryParam<T>

Object
  extended by Parameter
      extended by DataAccessFactory.Param
          extended by 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:

Field Summary
 
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
 
Constructor Summary
WFSDataStoreFactory.WFSFactoryParam(String key, Class type, String description)
          Creates a required parameter
WFSDataStoreFactory.WFSFactoryParam(String key, Class type, String description, T defaultValue)
          Creates an optional parameter with the supplied default value
 
Method Summary
 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
getLevel, isPassword
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
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 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.