Class FormXpathUtils

All Implemented Interfaces:
LogEnabled, Component

public class FormXpathUtils extends AbstractLogEnabled implements Component
Helper for manipulating xpath on Form, FormDirectory and FormPage
  • Constructor Details

  • Method Details

    • getXPathForFormDirectories

      public static String getXPathForFormDirectories(FormDirectory formDirectory)
      Creates the XPath query to get all form directories
      Parameters:
      formDirectory - The FormDirectory, defining the context from which getting children
      Returns:
      The XPath query
    • getXPathForFormPages

      public static String getXPathForFormPages(Form form, boolean onlyDirectChildren)
      Creates the XPath query to get all form pages
      Parameters:
      form - The FormDirectory, defining the context from which getting children
      onlyDirectChildren - true in order to have only direct child forms from parent path, false otherwise to have all forms at any level underneath the parent path
      Returns:
      The XPath query
    • getXPathForForms

      public static String getXPathForForms(FormDirectory formdirectory, boolean onlyDirectChildren)
      Creates the XPath query to get all forms
      Parameters:
      formdirectory - The Form, defining the context from which getting children
      onlyDirectChildren - true in order to have only direct child forms from parent path, false otherwise to have all forms at any level underneath the parent path
      Returns:
      The XPath query