public abstract class AbstractCRSManager extends Object implements CRSProvider
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_DEFAULT_CRS
The configuration parameter name for the default CRS definition.
|
static String |
PREFIX_PARAM_CRS
The prefix for configuration parameter names for the default CRS
definition for a property.
|
Constructor and Description |
---|
AbstractCRSManager(InstanceReader reader,
CRSProvider provider)
Create a CRS manager.
|
Modifier and Type | Method and Description |
---|---|
CRSDefinition |
getCRS(TypeDefinition parentType,
List<QName> propertyPath)
Get the CRS definition for values of the given property definition.
|
protected abstract String |
loadValue(String key)
Load a configuration value.
|
protected abstract void |
storeValue(String key,
String value)
Store a configuration value.
|
public static final String PARAM_DEFAULT_CRS
AbstractObjectFactory.parse(String)
is used to handle any values,
so CRSDefinitionManager#asString(CRSDefinition)
should be used to
create them.public static final String PREFIX_PARAM_CRS
PropertyDefinition
identifier.
AbstractObjectFactory.parse(String)
is used to handle any values,
so CRSDefinitionManager#asString(CRSDefinition)
should be used to
create them.public AbstractCRSManager(InstanceReader reader, CRSProvider provider)
reader
- the instance readerprovider
- the internal CRS provider to use, may be
null
public CRSDefinition getCRS(TypeDefinition parentType, List<QName> propertyPath)
CRSProvider
getCRS
in interface CRSProvider
parentType
- the definition of the type of the parent instancepropertyPath
- the property path in the instancenull
if it can't be determinedprotected abstract void storeValue(String key, String value)
key
- the configuration keyvalue
- the associated valueBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a