Package de.bmiag.tapir.execution.model
Class TestParameter
- java.lang.Object
-
- de.bmiag.tapir.execution.model.TestParameter
-
- All Implemented Interfaces:
Documentable
,ExecutionModelElement
,NamedElement
public final class TestParameter extends java.lang.Object implements Documentable, NamedElement, ExecutionModelElement
TestParameter
represents a test parameters which can be assigned to any class which implementsParameterized
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
- See Also:
Parameterized
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestParameter.Builder
Builds instances of typeTestParameter
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestParameter
build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestParameter.Builder> init)
Creates an immutable instance of TestParameter.TestParameter
copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestParameter.Builder> init)
Creates an immutable copy of this instance.boolean
equals(java.lang.Object obj)
java.util.Optional<java.lang.String>
getDescription()
Returns a description which is more detailed than the title.java.lang.String
getLabel()
java.lang.String
getName()
Returns the name.java.util.Optional<java.lang.String>
getTitle()
Returns the title.java.lang.Object
getValue()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
- Returns:
- The value of the
label
attribute
-
getValue
public java.lang.Object getValue()
- Returns:
- The value of the
value
attribute
-
getTitle
public java.util.Optional<java.lang.String> getTitle()
Description copied from interface:Documentable
Returns the title. The title should be short like a headline.- Specified by:
getTitle
in interfaceDocumentable
- Returns:
- The value of the
title
attribute
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
Description copied from interface:Documentable
Returns a description which is more detailed than the title.- Specified by:
getDescription
in interfaceDocumentable
- Returns:
- The value of the
description
attribute
-
getName
public java.lang.String getName()
Description copied from interface:NamedElement
Returns the name.- Specified by:
getName
in interfaceNamedElement
- Returns:
- The value of the
name
attribute
-
equals
@Pure public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
@Pure public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@Pure public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
build
public static TestParameter build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestParameter.Builder> init)
Creates an immutable instance of TestParameter. The values can be initialized by using the init parameter.- Parameters:
init
- The initializer- Returns:
- An immutable TestParameter instance
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
copy
public TestParameter copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestParameter.Builder> init)
Creates an immutable copy of this instance. Uses accessors to get values to initialize the new immutable instance. The values can be modified by using the init parameter.- Parameters:
init
- The initializer- Returns:
- A copied immutable TestParameter instance
-
-