@Generated(value="com.sun.tools.xjc.Driver", date="2014-04-08T02:14:23+02:00", comments="JAXB RI v2.2.6") public class StructWithOccuringChoice extends Object
Java class for StructWithOccuringChoice complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="StructWithOccuringChoice">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="varInteger" type="{http://www.w3.org/2001/XMLSchema}int"/>
<choice maxOccurs="unbounded" minOccurs="0">
<element name="varInt" type="{http://www.w3.org/2001/XMLSchema}int"/>
<element name="varString" type="{http://www.w3.org/2001/XMLSchema}string"/>
</choice>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected int |
varInteger |
protected List<Serializable> |
varIntOrVarString |
| Constructor and Description |
|---|
StructWithOccuringChoice() |
| Modifier and Type | Method and Description |
|---|---|
int |
getVarInteger()
Gets the value of the varInteger property.
|
List<Serializable> |
getVarIntOrVarString()
Gets the value of the varIntOrVarString property.
|
void |
setVarInteger(int value)
Sets the value of the varInteger property.
|
@Generated(value="com.sun.tools.xjc.Driver", date="2014-04-08T02:14:23+02:00", comments="JAXB RI v2.2.6") protected int varInteger
@Generated(value="com.sun.tools.xjc.Driver", date="2014-04-08T02:14:23+02:00", comments="JAXB RI v2.2.6") protected List<Serializable> varIntOrVarString
@Generated(value="com.sun.tools.xjc.Driver", date="2014-04-08T02:14:23+02:00", comments="JAXB RI v2.2.6") public int getVarInteger()
@Generated(value="com.sun.tools.xjc.Driver", date="2014-04-08T02:14:23+02:00", comments="JAXB RI v2.2.6") public void setVarInteger(int value)
@Generated(value="com.sun.tools.xjc.Driver", date="2014-04-08T02:14:23+02:00", comments="JAXB RI v2.2.6") public List<Serializable> getVarIntOrVarString()
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 varIntOrVarString property.
For example, to add a new item, do as follows:
getVarIntOrVarString().add(newItem);
Objects of the following type(s) are allowed in the list
Integer
String
Apache CXF