Class XMLConfigDigester


  • public class XMLConfigDigester
    extends Object
    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)
    • 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 a AppSchemaDataAccessDTO
        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 class
        dataStoreTag - custom tag name
        digester - the XML parser configuration to use