public class ListValue extends Value
Java class for ListValue complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ListValue"> <complexContent> <extension base="{http://ns.taverna.org.uk/2010/port/}Value"> <sequence> <choice maxOccurs="unbounded" minOccurs="0"> <element name="value" type="{http://ns.taverna.org.uk/2010/port/}LeafValue"/> <element name="list" type="{http://ns.taverna.org.uk/2010/port/}ListValue"/> <element name="error" type="{http://ns.taverna.org.uk/2010/port/}ErrorValue"/> <element name="absent" type="{http://ns.taverna.org.uk/2010/port/}AbsentValue"/> </choice> </sequence> <attribute ref="{http://ns.taverna.org.uk/2010/port/}length"/> </extension> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected Integer |
length |
protected List<Value> |
valueOrListOrError |
Constructor and Description |
---|
ListValue() |
Modifier and Type | Method and Description |
---|---|
Integer |
getLength()
Gets the value of the length property.
|
List<Value> |
getValueOrListOrError()
Gets the value of the valueOrListOrError property.
|
void |
setLength(Integer value)
Sets the value of the length property.
|
protected Integer length
public List<Value> getValueOrListOrError()
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 set
method for the valueOrListOrError property.
For example, to add a new item, do as follows:
getValueOrListOrError().add(newItem);
Objects of the following type(s) are allowed in the list
LeafValue
ListValue
ErrorValue
AbsentValue
public Integer getLength()
Integer
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.