Class Category

java.lang.Object
org.opentestfactory.messages.Category

public class Category extends Object
Category object in selector configuration.
Author:
edegenetais
  • Field Details

  • Constructor Details

    • Category

      public Category(String categoryDefinition)
      A category definition. Category definitions are defined this way : <categoryPrefix>/<categoryName>@<categoryVersion>

      Any part may be missing.

      Parameters:
      categoryDefinition -
  • Method Details

    • withPrefix

      public Category withPrefix(String newPrefix)
    • withCategory

      public Category withCategory(String newCategory)
    • withVersion

      public Category withVersion(String newVersion)
    • addToSelector

      public Selector addToSelector(Selector s)
      Add the category to a selector. TODO assess refactoring this method so that Category does not depend on selector. This may make the Selector model simpler.
      Parameters:
      s -
      Returns:
    • category

      public String category()
    • prefix

      public String prefix()
    • version

      public String version()
    • toExternalForm

      public String toExternalForm()