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 SummaryFields Modifier and Type Field Description static StringCONFIG_NS_URINamespace URI for the AppSchemaDataAccess configuration filesprotected InterpolationPropertiespropertiesProperties
 - 
Constructor SummaryConstructors Constructor Description XMLConfigDigester()Creates a new XMLConfigReader object.XMLConfigDigester(InterpolationProperties properties)Creates a new XMLConfigReader object.
 - 
Method SummaryAll 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_URIpublic static final String CONFIG_NS_URI Namespace URI for the AppSchemaDataAccess configuration files- See Also:
- Constant Field Values
 
 - 
propertiesprotected InterpolationProperties properties Properties
 
- 
 - 
Constructor Detail- 
XMLConfigDigesterpublic XMLConfigDigester() Creates a new XMLConfigReader object.
 - 
XMLConfigDigesterpublic XMLConfigDigester(InterpolationProperties properties) Creates a new XMLConfigReader object.- Parameters:
- properties- Properties to use for interpolation
 
 
- 
 - 
Method Detail- 
parsepublic 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
 
 - 
setCommonSourceDataStoreRulespublic 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 class
- dataStoreTag- custom tag name
- digester- the XML parser configuration to use
 
 
- 
 
-