Interface ConfigurationFile

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void applyCustomization​(CustomizationInfo c)
      Applies the corresponding customizations.
      void applyCustomizations()
      Loops through all the CustomizationInfo in the Customizations class and apply the corresponding customizations.
      void load​(java.lang.String fileName)
      Loads the file with the given name and initializes this ConfigurationFile with its content.
      void reload()
      Reloads the content of this ConfigurationFile if the underlying configuration file has changed.
      void save()
      Saves this ConfigurationFile back into the files where it was loaded from.
      void save​(CustomizationInfo c)
      Saves the differences between the shipped ("out of the box") definition of this ConfigurationFile and its currents values into the corresponding CustomizationInfo.
      void setUseValidation​(boolean value)
      Defines whether the XML content should validated using a DTD.
      boolean useValidation()
      Returns whether the XML content should be validated using a DTD.
    • Method Detail

      • load

        void load​(java.lang.String fileName)
           throws ConfigException
        Loads the file with the given name and initializes this ConfigurationFile with its content.
        Parameters:
        fileName - The path to the configuration file. This path will be resolved by the FileLoader
        Throws:
        ConfigException
      • reload

        void reload()
             throws ConfigException
        Reloads the content of this ConfigurationFile if the underlying configuration file has changed.
        Throws:
        ConfigException
      • save

        void save​(CustomizationInfo c)
           throws ConfigException
        Saves the differences between the shipped ("out of the box") definition of this ConfigurationFile and its currents values into the corresponding CustomizationInfo.
        Throws:
        ConfigException
      • applyCustomizations

        void applyCustomizations()
                          throws ConfigException
        Loops through all the CustomizationInfo in the Customizations class and apply the corresponding customizations.
        Throws:
        ConfigException
      • setUseValidation

        void setUseValidation​(boolean value)
        Defines whether the XML content should validated using a DTD.
        Parameters:
        value - true requires that the XML is parsed with DTD validation on.
      • useValidation

        boolean useValidation()
        Returns whether the XML content should be validated using a DTD. If true when the XML is parsed the file will be validated using the corresponding DTD (as defined in the XML itself).