public class ClassTwo extends Object implements Serializable
Java class for ClassTwo complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ClassTwo">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="one" type="{http://sample.javaprinciples.sf.net}ClassThree"/>
<element name="oneFive" type="{http://sample.javaprinciples.sf.net}ClassThree" maxOccurs="5"/>
<element name="zeroMany" type="{http://sample.javaprinciples.sf.net}ClassThree" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected ClassThree |
one |
protected List<ClassThree> |
oneFives |
protected List<ClassThree> |
zeroManies |
| Constructor and Description |
|---|
ClassTwo() |
| Modifier and Type | Method and Description |
|---|---|
ClassThree |
getOne()
Gets the value of the one property.
|
List<ClassThree> |
getOneFives()
Gets the value of the oneFives property.
|
List<ClassThree> |
getZeroManies()
Gets the value of the zeroManies property.
|
void |
setOne(ClassThree value)
Sets the value of the one property.
|
protected ClassThree one
protected List<ClassThree> oneFives
protected List<ClassThree> zeroManies
public ClassThree getOne()
ClassThreepublic void setOne(ClassThree value)
value - allowed object is
ClassThreepublic List<ClassThree> getOneFives()
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 oneFives property.
For example, to add a new item, do as follows:
getOneFives().add(newItem);
Objects of the following type(s) are allowed in the list
ClassThree
public List<ClassThree> getZeroManies()
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 zeroManies property.
For example, to add a new item, do as follows:
getZeroManies().add(newItem);
Objects of the following type(s) are allowed in the list
ClassThree
Copyright © 2014. All Rights Reserved.