Class TestCases.TestCase
- java.lang.Object
-
- org.kie.dmn.validation.dtanalysis.mcdc.dmntck.TestCases.TestCase
-
- Enclosing class:
- TestCases
public static class TestCases.TestCase extends Object
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="inputNode" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <extension base="{http://www.omg.org/spec/DMN/20160719/testcase}valueType"> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> <anyAttribute processContents='lax' namespace='##other'/> </extension> </complexContent> </complexType> </element> <element name="resultNode" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="computed" type="{http://www.omg.org/spec/DMN/20160719/testcase}valueType" minOccurs="0"/> <element name="expected" type="{http://www.omg.org/spec/DMN/20160719/testcase}valueType" minOccurs="0"/> </sequence> <attribute name="errorResult" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="cast" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </element> <element name="extensionElements" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="type" type="{http://www.omg.org/spec/DMN/20160719/testcase}testCaseType" default="decision" /> <attribute name="invocableName" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <anyAttribute processContents='lax' namespace='##other'/> </restriction> </complexContent> </complexType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestCases.TestCase.ExtensionElementsJava class for anonymous complex type.static classTestCases.TestCase.InputNodeJava class for anonymous complex type.static classTestCases.TestCase.ResultNodeJava class for anonymous complex type.
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected TestCases.TestCase.ExtensionElementsextensionElementsprotected Stringidprotected List<TestCases.TestCase.InputNode>inputNodeprotected StringinvocableNameprotected Stringnameprotected List<TestCases.TestCase.ResultNode>resultNodeprotected TestCaseTypetype
-
Constructor Summary
Constructors Constructor Description TestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Gets the value of the description property.TestCases.TestCase.ExtensionElementsgetExtensionElements()Gets the value of the extensionElements property.StringgetId()Gets the value of the id property.List<TestCases.TestCase.InputNode>getInputNode()Gets the value of the inputNode property.StringgetInvocableName()Gets the value of the invocableName property.StringgetName()Gets the value of the name property.Map<QName,String>getOtherAttributes()Gets a map that contains attributes that aren't bound to any typed property on this class.List<TestCases.TestCase.ResultNode>getResultNode()Gets the value of the resultNode property.TestCaseTypegetType()Gets the value of the type property.voidsetDescription(String value)Sets the value of the description property.voidsetExtensionElements(TestCases.TestCase.ExtensionElements value)Sets the value of the extensionElements property.voidsetId(String value)Sets the value of the id property.voidsetInvocableName(String value)Sets the value of the invocableName property.voidsetName(String value)Sets the value of the name property.voidsetType(TestCaseType value)Sets the value of the type property.TestCases.TestCasewithDescription(String value)TestCases.TestCasewithExtensionElements(TestCases.TestCase.ExtensionElements value)TestCases.TestCasewithId(String value)TestCases.TestCasewithInputNode(Collection<TestCases.TestCase.InputNode> values)TestCases.TestCasewithInputNode(TestCases.TestCase.InputNode... values)TestCases.TestCasewithInvocableName(String value)TestCases.TestCasewithName(String value)TestCases.TestCasewithResultNode(Collection<TestCases.TestCase.ResultNode> values)TestCases.TestCasewithResultNode(TestCases.TestCase.ResultNode... values)TestCases.TestCasewithType(TestCaseType value)
-
-
-
Field Detail
-
description
protected String description
-
inputNode
protected List<TestCases.TestCase.InputNode> inputNode
-
resultNode
protected List<TestCases.TestCase.ResultNode> resultNode
-
extensionElements
protected TestCases.TestCase.ExtensionElements extensionElements
-
id
protected String id
-
type
protected TestCaseType type
-
invocableName
protected String invocableName
-
name
protected String name
-
-
Method Detail
-
getDescription
public String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Sets the value of the description property.- Parameters:
value- allowed object isString
-
getInputNode
public List<TestCases.TestCase.InputNode> getInputNode()
Gets the value of the inputNode property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the inputNode property.For example, to add a new item, do as follows:
getInputNode().add(newItem);Objects of the following type(s) are allowed in the list
TestCases.TestCase.InputNode
-
getResultNode
public List<TestCases.TestCase.ResultNode> getResultNode()
Gets the value of the resultNode property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the resultNode property.For example, to add a new item, do as follows:
getResultNode().add(newItem);Objects of the following type(s) are allowed in the list
TestCases.TestCase.ResultNode
-
getExtensionElements
public TestCases.TestCase.ExtensionElements getExtensionElements()
Gets the value of the extensionElements property.- Returns:
- possible object is
TestCases.TestCase.ExtensionElements
-
setExtensionElements
public void setExtensionElements(TestCases.TestCase.ExtensionElements value)
Sets the value of the extensionElements property.- Parameters:
value- allowed object isTestCases.TestCase.ExtensionElements
-
setId
public void setId(String value)
Sets the value of the id property.- Parameters:
value- allowed object isString
-
getType
public TestCaseType getType()
Gets the value of the type property.- Returns:
- possible object is
TestCaseType
-
setType
public void setType(TestCaseType value)
Sets the value of the type property.- Parameters:
value- allowed object isTestCaseType
-
getInvocableName
public String getInvocableName()
Gets the value of the invocableName property.- Returns:
- possible object is
String
-
setInvocableName
public void setInvocableName(String value)
Sets the value of the invocableName property.- Parameters:
value- allowed object isString
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getOtherAttributes
public Map<QName,String> getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
- Returns:
- always non-null
-
withDescription
public TestCases.TestCase withDescription(String value)
-
withInputNode
public TestCases.TestCase withInputNode(TestCases.TestCase.InputNode... values)
-
withInputNode
public TestCases.TestCase withInputNode(Collection<TestCases.TestCase.InputNode> values)
-
withResultNode
public TestCases.TestCase withResultNode(TestCases.TestCase.ResultNode... values)
-
withResultNode
public TestCases.TestCase withResultNode(Collection<TestCases.TestCase.ResultNode> values)
-
withExtensionElements
public TestCases.TestCase withExtensionElements(TestCases.TestCase.ExtensionElements value)
-
withId
public TestCases.TestCase withId(String value)
-
withType
public TestCases.TestCase withType(TestCaseType value)
-
withInvocableName
public TestCases.TestCase withInvocableName(String value)
-
withName
public TestCases.TestCase withName(String value)
-
-