Class FormatIdentifierFactory


  • public class FormatIdentifierFactory
    extends java.lang.Object
    Format Identifier Factory : used to retrieve the FormatIdentifier implementations
    • Method Detail

      • changeConfigurationFile

        public final void changeConfigurationFile​(java.lang.String configurationPath)
        Change client configuration from the Json file
        Parameters:
        configurationPath - the path to the configuration file
      • getInstance

        public static FormatIdentifierFactory getInstance()
        Get the FormatIdentifierFactory instance
        Returns:
        the instance
      • addFormatIdentifier

        public void addFormatIdentifier​(java.lang.String formatIdentifierId,
                                        FormatIdentifierConfiguration configuration)
        Add a format identifier configuration
        Parameters:
        formatIdentifierId - format identifier id
        configuration - format identifier configuration
        Throws:
        java.lang.IllegalArgumentException - if the parameters are null : formatIdentifierId, configuration, configuration.type
      • removeFormatIdentifier

        public void removeFormatIdentifier​(java.lang.String formatIdentifierId)
                                    throws FormatIdentifierNotFoundException
        Remove a format identifier configuration by its id
        Parameters:
        formatIdentifierId - format identifier id
        Throws:
        FormatIdentifierNotFoundException - if no configuration is registered for the given formatIdentifierId
        java.lang.IllegalArgumentException - if the parameters are null : formatIdentifierId