@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") public class Person 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="Name" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="DateOfBirth" type="{http://www.w3.org/2001/XMLSchema}date"/>
<element name="Address" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="HouseNo" type="{http://www.w3.org/2001/XMLSchema}int"/>
<element name="PostCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="Car" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Make" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="Model" type="{http://www.w3.org/2001/XMLSchema}string"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
Person.Address
Java class for anonymous complex type.
|
static class |
Person.Car
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected Person.Address |
address |
protected List<Person.Car> |
car |
protected XMLGregorianCalendar |
dateOfBirth |
protected String |
name |
| Constructor and Description |
|---|
Person() |
| Modifier and Type | Method and Description |
|---|---|
Person.Address |
getAddress()
Gets the value of the address property.
|
List<Person.Car> |
getCar()
Gets the value of the car property.
|
XMLGregorianCalendar |
getDateOfBirth()
Gets the value of the dateOfBirth property.
|
String |
getName()
Gets the value of the name property.
|
void |
setAddress(Person.Address value)
Sets the value of the address property.
|
void |
setDateOfBirth(XMLGregorianCalendar value)
Sets the value of the dateOfBirth property.
|
void |
setName(String value)
Sets the value of the name property.
|
@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") protected String name
@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") protected XMLGregorianCalendar dateOfBirth
@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") protected Person.Address address
@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") protected List<Person.Car> car
@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") public String getName()
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") public void setName(String value)
value - allowed object is
String@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") public XMLGregorianCalendar getDateOfBirth()
XMLGregorianCalendar@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") public void setDateOfBirth(XMLGregorianCalendar value)
value - allowed object is
XMLGregorianCalendar@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") public Person.Address getAddress()
Person.Address@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") public void setAddress(Person.Address value)
value - allowed object is
Person.Address@Generated(value="com.sun.tools.xjc.Driver", date="2019-03-07T01:26:48+00:00", comments="JAXB RI vhudson-jaxb-ri-2.1-520") public List<Person.Car> getCar()
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 car property.
For example, to add a new item, do as follows:
getCar().add(newItem);
Objects of the following type(s) are allowed in the list
Person.Car
Copyright © 2019 Mulesoft. All rights reserved.