Class XPathFormValidation

java.lang.Object
io.jenkins.plugins.xmleditor.ops.XPathFormValidation

public final class XPathFormValidation extends Object
Live syntax check of XPath fields in forms (Freestyle configuration and Snippet Generator).
  • Method Details

    • check

      public static FormValidation check(@CheckForNull Item item, String value, boolean required)
      Parameters:
      item - the job being configured, or null outside a job (e.g. the global Snippet Generator)
      required - whether an empty value is an error