Interface FormStructureHelper

    • Method Detail

      • getFormResource

        Resource getFormResource​(Resource resource)
        Gets the resource corresponding to form element i.e. the resource with form properties.
        Parameters:
        resource - Resource
        Returns:
        form element Resource or null if no form resource is found.
      • getFormElements

        java.lang.Iterable<Resource> getFormElements​(Resource resource)
        Gets the resources corresponding to fields of given form resource.
        Parameters:
        resource - Resource.
        Returns:
        form field Resources.
      • updateFormStructure

        Resource updateFormStructure​(Resource resource)
        Updates necessary changes to the form resource. Can be used to set minimal default values for the form (e.g. action type) and to ensure additional mandatory resources (e.g. form start and form end resource)
        Parameters:
        resource - Resource any resource.
        Returns:
        updated form resource or null if it wasn't a form related resource or nothing has to be adapted.