Interface FormModelReceiver

All Known Implementing Classes:
FormModelReceiverImpl

@Deprecated public interface FormModelReceiver
Deprecated.
Receives the added forms during the form-reading process
Why a seperate FormModelReceiver and a TemplateModelReceiver?

In order to force correctness the form/template-reading-process has two phases:
- First it reads ALL templates
- Second it reads the forms
In order to archiving this together with the implementation-details its realisiations in ch.tocco.nice2.model.impl.base.ModuleResourcesModelProvider the reading splits up based on type. Therefore to distinguish between the diffrent reader a diffrent receiver-type is needed.

  • Method Details

    • addForm

      void addForm(Form form)
      Deprecated.
      Throws:
      IllegalArgumentException - If a form with that name already exists, or if a form with that name has been removed.
    • getForm

      @Nullable @Nullable Form getForm(String name)
      Deprecated.
    • removeForm

      void removeForm(String nameToRemove)
      Deprecated.
    • getForms

      Iterable<Form> getForms()
      Deprecated.