Class TestClass.Builder

  • Enclosing class:
    TestClass

    public static final class TestClass.Builder
    extends java.lang.Object
    Builds instances of type TestClass.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setDescription​(java.lang.String description)
      Initializes the default value for the description attribute.
      void setDescription​(java.util.Optional<java.lang.String> description)
      Initializes the value for the description attribute.
      void setId​(java.lang.Integer id)
      Initializes the value for the id attribute.
      void setIssues​(java.lang.Iterable<java.lang.String> elements)
      Adds elements to issues.
      void setJavaClass​(java.lang.Class<?> javaClass)
      Initializes the value for the javaClass attribute.
      void setName​(java.lang.String name)
      Initializes the value for the name attribute.
      void setParameters​(java.lang.Iterable<TestParameter> elements)
      Adds elements to parameters.
      void setParent​(StructuralElementContainer parent)
      Initializes the value for the parent attribute.
      void setSteps​(java.lang.Iterable<TestStep> elements)
      Adds elements to steps.
      void setTags​(java.lang.Iterable<java.lang.String> elements)
      Adds elements to tags.
      void setTitle​(java.lang.String title)
      Initializes the default value for the title attribute.
      void setTitle​(java.util.Optional<java.lang.String> title)
      Initializes the value for the title attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setSteps

        public void setSteps​(java.lang.Iterable<TestStep> elements)
        Adds elements to steps.
        Parameters:
        elements - An iterable of steps elements
      • setParameters

        public void setParameters​(java.lang.Iterable<TestParameter> elements)
        Adds elements to parameters.
        Parameters:
        elements - An iterable of parameters elements
      • setParent

        public void setParent​(StructuralElementContainer parent)
        Initializes the value for the parent attribute.
        Parameters:
        parent - The value for parent
      • setJavaClass

        public void setJavaClass​(java.lang.Class<?> javaClass)
        Initializes the value for the javaClass attribute.
        Parameters:
        javaClass - The value for javaClass
      • setTags

        public void setTags​(java.lang.Iterable<java.lang.String> elements)
        Adds elements to tags.
        Parameters:
        elements - An iterable of tags elements
      • setIssues

        public void setIssues​(java.lang.Iterable<java.lang.String> elements)
        Adds elements to issues.
        Parameters:
        elements - An iterable of issues elements
      • setTitle

        public void setTitle​(java.util.Optional<java.lang.String> title)
        Initializes the value for the title attribute.
        Parameters:
        title - The value for title
      • setTitle

        public void setTitle​(java.lang.String title)
        Initializes the default value for the title attribute.
        Parameters:
        title - The value for title
      • setDescription

        public void setDescription​(java.util.Optional<java.lang.String> description)
        Initializes the value for the description attribute.
        Parameters:
        description - The value for description
      • setDescription

        public void setDescription​(java.lang.String description)
        Initializes the default value for the description attribute.
        Parameters:
        description - The value for description
      • setName

        public void setName​(java.lang.String name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name
      • setId

        public void setId​(java.lang.Integer id)
        Initializes the value for the id attribute.
        Parameters:
        id - The value for id