Interface IFormGenerator


  • public interface IFormGenerator
    Main interface for form generator
    • Method Detail

      • generateModuleContent

        @Deprecated
        Supplier<InputStream> generateModuleContent​(FormType formType,
                                                    ScriptVariant scriptVariant,
                                                    String languageCode,
                                                    Version version)
        Deprecated.
        Use five-argument counterpart.
        Generate module content for form with specified parameters. In contrast to its five-argument counterpart this method uses system line delimiter.

        Each time supplier invoked will be generate new instance of InputStream. And each time it must be closed.

        Parameters:
        formType - FormType, cannot be null
        scriptVariant - the current configuration script variant, cannot be null
        languageCode - the current editing language code, cannot be null
        version - the runtime version, cannot be null
        Returns:
        supplier of InputStream of module content, can be null if form with specified parameters has no module
      • generateModuleContent

        Supplier<InputStream> generateModuleContent​(FormType formType,
                                                    ScriptVariant scriptVariant,
                                                    String languageCode,
                                                    Version version,
                                                    String lineDelimiter)
        Generate module content for form with specified parameters.

        Each time supplier invoked will be generate new instance of InputStream. And each time it must be closed.

        Parameters:
        formType - FormType, cannot be null
        scriptVariant - the current configuration script variant, cannot be null
        languageCode - the current editing language code, cannot be null
        version - the runtime version, cannot be null
        lineDelimiter - the line delimiter to use, cannot be null
        Returns:
        supplier of InputStream of module content, can be null if form with specified parameters has no module
      • generateAttachments

        Map<org.eclipse.core.runtime.IPath,​Supplier<InputStream>> generateAttachments​(FormType formType,
                                                                                            ScriptVariant scriptVariant,
                                                                                            String editingLanguageCode,
                                                                                            Version version)
        Generate attachments for form with specified parameters. In the form of pairs of relative paths and InputStream content suppliers

        Each time supplier invoked will be generate new instance of InputStream. And each time it must be closed.

        Parameters:
        formType - FormType, cannot be null
        scriptVariant - the current configuration script variant, cannot be null
        languageCode - the current editing language code, cannot be null
        version - the runtime version, cannot be null
        Returns:
        map of attachments, never null, may be empty