Class MethodValidatorBean

java.lang.Object
ee.jakarta.tck.pages.common.util.MethodValidatorBean

public class MethodValidatorBean extends Object
Simple bean to validate a set of values passed in via the PageContext against a user configured set of values.
  • Constructor Details

    • MethodValidatorBean

      public MethodValidatorBean()
      Default constructor.
  • Method Details

    • getMethods

      public String getMethods()
      Gets the methods used to validated against the methods added to the PageContext.
      Returns:
      - a comma separated list of methods
    • setMethods

      public void setMethods(String methods)
      Sets the methods used to validated against the methods added to the PageContext.
      Parameters:
      methods - - the methods to validate
    • getContext

      public jakarta.servlet.jsp.PageContext getContext()
      Gets the PageContext for this bean.
      Returns:
      this bean's PageContext
    • setContext

      public void setContext(jakarta.servlet.jsp.PageContext context)
      Sets this bean's PageContext.
      Parameters:
      context - - the PageContext for this bean
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getResult

      public String getResult() throws jakarta.servlet.jsp.JspException
      Obtains a page scoped List object from the PageContext that obtains a list of methods that have been called by a particular tag handler. This List will be compared with the methods passed to this handler via the methods attribute.
      Returns:
      a String representing the result of the check.
      Throws:
      jakarta.servlet.jsp.JspException