Package org.geotools.data.complex.config
Class XMLConfigDigester
Object
XMLConfigDigester
Digester to consume the app-schema
AppSchemaDataAccessFactory
configuration file.- Since:
- 2.4
- Author:
- Gabriel Roldan (Axios Engineering), Rini Angreani (CSIRO Earth Science and Resource Engineering), Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering), Russell Petty (GeoScience Victoria)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Namespace URI for the AppSchemaDataAccess configuration filesprotected InterpolationProperties
Properties -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new XMLConfigReader object.XMLConfigDigester
(InterpolationProperties properties) Creates a new XMLConfigReader object. -
Method Summary
Modifier and TypeMethodDescriptionParses a complex datastore configuration file in xml format into aAppSchemaDataAccessDTO
static void
setCommonSourceDataStoreRules
(Class<? extends SourceDataStore> datStoreType, String dataStoreTag, Digester digester) Helper method that can be used by stores to contribute their own XML configurations.
-
Field Details
-
CONFIG_NS_URI
Namespace URI for the AppSchemaDataAccess configuration files- See Also:
-
properties
Properties
-
-
Constructor Details
-
XMLConfigDigester
public XMLConfigDigester()Creates a new XMLConfigReader object. -
XMLConfigDigester
Creates a new XMLConfigReader object.- Parameters:
properties
- Properties to use for interpolation
-
-
Method Details
-
parse
Parses a complex datastore configuration file in xml format into aAppSchemaDataAccessDTO
- Parameters:
dataStoreConfigUrl
- config file location- Returns:
- a DTO object representing the datastore's configuration
- Throws:
IOException
- if an error occurs parsing the file
-
setCommonSourceDataStoreRules
public static void setCommonSourceDataStoreRules(Class<? extends SourceDataStore> datStoreType, String dataStoreTag, Digester digester) Helper method that can be used by stores to contribute their own XML configurations.- Parameters:
datStoreType
- the data store classdataStoreTag
- custom tag namedigester
- the XML parser configuration to use
-