Interface Parameters.MutableKeywordsParameters

All Superinterfaces:
Parameters.KeywordsParameters
All Known Implementing Classes:
BasicParameters, FileParameters, KeywordsInterview
Enclosing interface:
Parameters

public static interface Parameters.MutableKeywordsParameters extends Parameters.KeywordsParameters
An interface providing abstract access to a keywords object which can be used to select tests according to their keywords.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    A constant used to indicate that tests that match all of the given keywords should be selected.
    static final int
    A constant used to indicate that tests that match any of the given keywords should be selected.
    static final int
    A constant used to indicate that tests that match the given keyword expression should be selected.
    static final int
    A constant used to indicate that only tests matching the specified keywords should be selected.
    static final int
    A constant used to indicate that no keyword filtering should be used.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the current keywords mode.
    int
    Get a value which indicates how to interpret the match value, when the keywords mode is set to MATCH_KEYWORDS.
    Get a value that identifies which tests are to be selected, when the keywords mode is set to MATCH_KEYWORDS.
    void
    setKeywords(int mode, String value)
    Set the details of the keywords to be used, if any, to filter tests for execution.
    void
    setKeywordsMode(int mode)
    Set the current keywords mode.
    void
    setMatchKeywords(int mode, String value)
    Set how to match a tests keywords when the keywords mode is set to MATCH_KEYWORDS.

    Methods inherited from interface com.sun.javatest.Parameters.KeywordsParameters

    getKeywords
  • Field Details

    • NO_KEYWORDS

      static final int NO_KEYWORDS
      A constant used to indicate that no keyword filtering should be used.
      See Also:
    • MATCH_KEYWORDS

      static final int MATCH_KEYWORDS
      A constant used to indicate that only tests matching the specified keywords should be selected.
      See Also:
    • ANY_OF

      static final int ANY_OF
      A constant used to indicate that tests that match any of the given keywords should be selected.
      See Also:
    • ALL_OF

      static final int ALL_OF
      A constant used to indicate that tests that match all of the given keywords should be selected.
      See Also:
    • EXPR

      static final int EXPR
      A constant used to indicate that tests that match the given keyword expression should be selected.
      See Also:
  • Method Details

    • setKeywords

      void setKeywords(int mode, String value)
      Set the details of the keywords to be used, if any, to filter tests for execution.
      Parameters:
      mode - the value of the match keywords mode to be set if value is not null
      value - if null, the keywords mode will be set to NO_KEYWORDS; if not null, the keywords mode will be set to MATCH_KEYWORDS, the match keywords mode will be set to mode, and the match keywords value will be set to this value
      See Also:
    • getKeywordsMode

      int getKeywordsMode()
      Get the current keywords mode.
      Returns:
      NO_KEYWORDS if no keyword filtering will be used to select tests for execution, or MATCH_KEYWORDS if keywords will be filtered according to the match mode and match value.
      See Also:
    • setKeywordsMode

      void setKeywordsMode(int mode)
      Set the current keywords mode.
      Parameters:
      mode - set to NO_KEYWORDS if no keyword filtering will be used to select tests for execution, or MATCH_KEYWORDS if keywords will be filtered according to the match mode and match value.
      See Also:
    • getMatchKeywordsMode

      int getMatchKeywordsMode()
      Get a value which indicates how to interpret the match value, when the keywords mode is set to MATCH_KEYWORDS.
      Returns:
      a value which indicates how to interpret the match value, when the keywords mode is set to MATCH_KEYWORDS
      See Also:
    • getMatchKeywordsValue

      String getMatchKeywordsValue()
      Get a value that identifies which tests are to be selected, when the keywords mode is set to MATCH_KEYWORDS.
      Returns:
      a value that identifies which tests are to be selected, when the keywords mode is set to MATCH_KEYWORDS
      See Also:
    • setMatchKeywords

      void setMatchKeywords(int mode, String value)
      Set how to match a tests keywords when the keywords mode is set to MATCH_KEYWORDS.
      Parameters:
      mode - A value indicating how to interpret value
      value - If mode is set to ANY_OF or ALL_OF, this value should give a white-space separate list of keywords to be matched; if mode is set to EXPR, this value should be a boolean expression using terminals, & (and), | (or), ! (negation) and parentheses, where the terminals are true if a test description contains that name as one of its keywords.
      See Also: