Package org.geotools.data.complex.config
Class XMLConfigDigester
- Object
-
- XMLConfigDigester
-
public class XMLConfigDigester extends Object
Digester to consume the app-schemaAppSchemaDataAccessFactoryconfiguration 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
Fields Modifier and Type Field Description static StringCONFIG_NS_URINamespace URI for the AppSchemaDataAccess configuration filesprotected InterpolationPropertiespropertiesProperties
-
Constructor Summary
Constructors Constructor Description XMLConfigDigester()Creates a new XMLConfigReader object.XMLConfigDigester(InterpolationProperties properties)Creates a new XMLConfigReader object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AppSchemaDataAccessDTOparse(URL dataStoreConfigUrl)Parses a complex datastore configuration file in xml format into aAppSchemaDataAccessDTOstatic voidsetCommonSourceDataStoreRules(Class<? extends SourceDataStore> datStoreType, String dataStoreTag, Digester digester)Helper method that can be used by stores to contribute their own XML configurations.
-
-
-
Field Detail
-
CONFIG_NS_URI
public static final String CONFIG_NS_URI
Namespace URI for the AppSchemaDataAccess configuration files- See Also:
- Constant Field Values
-
properties
protected InterpolationProperties properties
Properties
-
-
Constructor Detail
-
XMLConfigDigester
public XMLConfigDigester()
Creates a new XMLConfigReader object.
-
XMLConfigDigester
public XMLConfigDigester(InterpolationProperties properties)
Creates a new XMLConfigReader object.- Parameters:
properties- Properties to use for interpolation
-
-
Method Detail
-
parse
public AppSchemaDataAccessDTO parse(URL dataStoreConfigUrl) throws IOException
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
-
-