Class ValueType
- java.lang.Object
-
- org.kie.dmn.validation.dtanalysis.mcdc.dmntck.ValueType
-
- Direct Known Subclasses:
TestCases.TestCase.InputNode,ValueType.Component
public class ValueType extends Object
Java class for valueType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="valueType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice> <element name="value" type="{http://www.w3.org/2001/XMLSchema}anySimpleType"/> <element name="component" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <extension base="{http://www.omg.org/spec/DMN/20160719/testcase}valueType"> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> <anyAttribute processContents='lax' namespace='##other'/> </extension> </complexContent> </complexType> </element> <element name="list"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="item" type="{http://www.omg.org/spec/DMN/20160719/testcase}valueType" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> </choice> <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> <anyAttribute processContents='lax' namespace='##other'/> </restriction> </complexContent> </complexType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValueType.ComponentJava class for anonymous complex type.static classValueType.ExtensionElementsJava class for anonymous complex type.static classValueType.ListJava class for anonymous complex type.
-
Field Summary
Fields Modifier and Type Field Description protected List<ValueType.Component>componentprotected ValueType.ExtensionElementsextensionElementsprotected JAXBElement<ValueType.List>listprotected JAXBElement<Object>value
-
Constructor Summary
Constructors Constructor Description ValueType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ValueType.Component>getComponent()Gets the value of the component property.ValueType.ExtensionElementsgetExtensionElements()Gets the value of the extensionElements property.JAXBElement<ValueType.List>getList()Gets the value of the list property.Map<QName,String>getOtherAttributes()Gets a map that contains attributes that aren't bound to any typed property on this class.JAXBElement<Object>getValue()Gets the value of the value property.voidsetExtensionElements(ValueType.ExtensionElements value)Sets the value of the extensionElements property.voidsetList(JAXBElement<ValueType.List> value)Sets the value of the list property.voidsetValue(JAXBElement<Object> value)Sets the value of the value property.ValueTypewithComponent(Collection<ValueType.Component> values)ValueTypewithComponent(ValueType.Component... values)ValueTypewithExtensionElements(ValueType.ExtensionElements value)ValueTypewithList(JAXBElement<ValueType.List> value)ValueTypewithValue(JAXBElement<Object> value)
-
-
-
Field Detail
-
value
protected JAXBElement<Object> value
-
component
protected List<ValueType.Component> component
-
list
protected JAXBElement<ValueType.List> list
-
extensionElements
protected ValueType.ExtensionElements extensionElements
-
-
Method Detail
-
getValue
public JAXBElement<Object> getValue()
Gets the value of the value property.- Returns:
- possible object is
JAXBElement<Object>
-
setValue
public void setValue(JAXBElement<Object> value)
Sets the value of the value property.- Parameters:
value- allowed object isJAXBElement<Object>
-
getComponent
public List<ValueType.Component> getComponent()
Gets the value of the component 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 component property.For example, to add a new item, do as follows:
getComponent().add(newItem);Objects of the following type(s) are allowed in the list
ValueType.Component
-
getList
public JAXBElement<ValueType.List> getList()
Gets the value of the list property.- Returns:
- possible object is
JAXBElement<ValueType.List>
-
setList
public void setList(JAXBElement<ValueType.List> value)
Sets the value of the list property.- Parameters:
value- allowed object isJAXBElement<ValueType.List>
-
getExtensionElements
public ValueType.ExtensionElements getExtensionElements()
Gets the value of the extensionElements property.- Returns:
- possible object is
ValueType.ExtensionElements
-
setExtensionElements
public void setExtensionElements(ValueType.ExtensionElements value)
Sets the value of the extensionElements property.- Parameters:
value- allowed object isValueType.ExtensionElements
-
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
-
withValue
public ValueType withValue(JAXBElement<Object> value)
-
withComponent
public ValueType withComponent(ValueType.Component... values)
-
withComponent
public ValueType withComponent(Collection<ValueType.Component> values)
-
withList
public ValueType withList(JAXBElement<ValueType.List> value)
-
withExtensionElements
public ValueType withExtensionElements(ValueType.ExtensionElements value)
-
-