|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.DataStoreFactorySpi.Param
Data class used to capture Parameter requirements.
Subclasses may provide specific setAsText()/getAsText() requirements
Field Summary | |
java.lang.String |
description
Short description (less then 40 characters) |
java.lang.String |
key
Key used in Parameter map |
boolean |
required
True if Param is required |
java.lang.Class |
type
Type of information required |
Constructor Summary | |
DataStoreFactorySpi.Param(java.lang.String key)
Provides support for text representations |
|
DataStoreFactorySpi.Param(java.lang.String key,
java.lang.Class type)
Provides support for text representations. |
|
DataStoreFactorySpi.Param(java.lang.String key,
java.lang.Class type,
java.lang.String description)
Provides support for text representations |
|
DataStoreFactorySpi.Param(java.lang.String key,
java.lang.Class type,
java.lang.String description,
boolean required)
Provides support for text representations |
Method Summary | |
java.lang.String |
getAsText(java.lang.Object value)
|
java.lang.Object |
setAsText(java.lang.String text)
Provides support for text representations |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final boolean required
public final java.lang.String key
public final java.lang.Class type
public final java.lang.String description
Constructor Detail |
public DataStoreFactorySpi.Param(java.lang.String key)
The parameter type of String is assumed.
key
- Key used to file this Param in the Parameter Map for
createDataStorepublic DataStoreFactorySpi.Param(java.lang.String key, java.lang.Class type)
You may specify a type
for this Param.
key
- Key used to file this Param in the Parameter Map for
createDataStoretype
- Class type intended for this Parampublic DataStoreFactorySpi.Param(java.lang.String key, java.lang.Class type, java.lang.String description)
key
- Key used to file this Param in the Parameter Map for
createDataStoretype
- Class type intended for this Paramdescription
- User description of Param (40 chars or less)public DataStoreFactorySpi.Param(java.lang.String key, java.lang.Class type, java.lang.String description, boolean required)
key
- Key used to file this Param in the Parameter Map for
createDataStoretype
- Class type intended for this Paramdescription
- User description of Param (40 chars or less)required
- true
is param is requiredMethod Detail |
public java.lang.String getAsText(java.lang.Object value)
public java.lang.Object setAsText(java.lang.String text)
Provides basic support for common types using reflection.
If needed you may extend this class to handle your own custome types.
text
- Text representation
null
if unsuccessful
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |