Class Person
-
- All Implemented Interfaces:
public class Person
Represents a person. This could either be a competitor (see the Competitor element) or contact persons in an organisation (see the Organisation element).
Java class for Person complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="Person"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="Id" type="{http://www.orienteering.org/datastandard/3.0}Id" maxOccurs="unbounded" minOccurs="0"/> <element name="Name" type="{http://www.orienteering.org/datastandard/3.0}PersonName"/> <element name="BirthDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/> <element name="Nationality" type="{http://www.orienteering.org/datastandard/3.0}Country" minOccurs="0"/> <element name="Address" type="{http://www.orienteering.org/datastandard/3.0}Address" maxOccurs="unbounded" minOccurs="0"/> <element name="Contact" type="{http://www.orienteering.org/datastandard/3.0}Contact" maxOccurs="unbounded" minOccurs="0"/> <element name="Extensions" type="{http://www.orienteering.org/datastandard/3.0}Extensions" minOccurs="0"/> </sequence> <attribute name="sex"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="F"/> <enumeration value="M"/> </restriction> </simpleType> </attribute> <attribute name="modifyTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> </restriction> </complexContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description Person()
-
Method Summary
Modifier and Type Method Description List<Id>
getId()
The identifier of the person. PersonName
getName()
Gets the value of the name property. void
setName(PersonName value)
Sets the value of the name property. XMLGregorianCalendar
getBirthDate()
The date when the person was born, expressed in ISO 8601 format. void
setBirthDate(XMLGregorianCalendar value)
Sets the value of the birthDate property. Country
getNationality()
Gets the value of the nationality property. void
setNationality(Country value)
Sets the value of the nationality property. List<Address>
getAddress()
Gets the value of the address property. List<Contact>
getContact()
Gets the value of the contact property. Extensions
getExtensions()
Container element for custom elements from other schemas. void
setExtensions(Extensions value)
Sets the value of the extensions property. String
getSex()
Gets the value of the sex property. void
setSex(String value)
Sets the value of the sex property. XMLGregorianCalendar
getModifyTime()
Gets the value of the modifyTime property. void
setModifyTime(XMLGregorianCalendar value)
Sets the value of the modifyTime property. -
-
Method Detail
-
getId
List<Id> getId()
The identifier of the person. Multiple identifiers can be included, e.g. when there is both a World Ranking Event identifier and a national database identifier for the person. Gets the value of the id 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
set
method for the id property.For example, to add a new item, do as follows:
getId().add(newItem);
Objects of the following type(s) are allowed in the list Id
- Returns:
Thevalue of the id property.
-
getName
PersonName getName()
Gets the value of the name property.
- Returns:
possibleobject is PersonName
-
setName
void setName(PersonName value)
Sets the value of the name property.
- Parameters:
value
- allowed object is PersonName
-
getBirthDate
XMLGregorianCalendar getBirthDate()
The date when the person was born, expressed in ISO 8601 format.
- Returns:
possibleobject is XMLGregorianCalendar
-
setBirthDate
void setBirthDate(XMLGregorianCalendar value)
Sets the value of the birthDate property.
- Parameters:
value
- allowed object is XMLGregorianCalendar
-
getNationality
Country getNationality()
Gets the value of the nationality property.
- Returns:
possibleobject is Country
-
setNationality
void setNationality(Country value)
Sets the value of the nationality property.
- Parameters:
value
- allowed object is Country
-
getAddress
List<Address> getAddress()
Gets the value of the address 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
set
method for the address property.For example, to add a new item, do as follows:
getAddress().add(newItem);
Objects of the following type(s) are allowed in the list Address
- Returns:
Thevalue of the address property.
-
getContact
List<Contact> getContact()
Gets the value of the contact 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
set
method for the contact property.For example, to add a new item, do as follows:
getContact().add(newItem);
Objects of the following type(s) are allowed in the list Contact
- Returns:
Thevalue of the contact property.
-
getExtensions
Extensions getExtensions()
Container element for custom elements from other schemas.
- Returns:
possibleobject is Extensions
-
setExtensions
void setExtensions(Extensions value)
Sets the value of the extensions property.
- Parameters:
value
- allowed object is Extensions
-
setSex
void setSex(String value)
Sets the value of the sex property.
- Parameters:
value
- allowed object is String
-
getModifyTime
XMLGregorianCalendar getModifyTime()
Gets the value of the modifyTime property.
- Returns:
possibleobject is XMLGregorianCalendar
-
setModifyTime
void setModifyTime(XMLGregorianCalendar value)
Sets the value of the modifyTime property.
- Parameters:
value
- allowed object is XMLGregorianCalendar
-
-
-
-