package org.oasis.wsrp.v2; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for PersonName complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="PersonName"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="prefix" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="given" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="family" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="middle" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="suffix" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="nickname" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="extensions" type="{urn:oasis:names:tc:wsrp:v2:types}Extension" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PersonName", propOrder = { "prefix", "given", "family", "middle", "suffix", "nickname", "extensions" }) public class PersonName { protected String prefix; protected String given; protected String family; protected String middle; protected String suffix; protected String nickname; protected List<Extension> extensions; /** * Gets the value of the prefix property. * * @return * possible object is * {@link String } * */ public String getPrefix() { return prefix; } /** * Sets the value of the prefix property. * * @param value * allowed object is * {@link String } * */ public void setPrefix(String value) { this.prefix = value; } /** * Gets the value of the given property. * * @return * possible object is * {@link String } * */ public String getGiven() { return given; } /** * Sets the value of the given property. * * @param value * allowed object is * {@link String } * */ public void setGiven(String value) { this.given = value; } /** * Gets the value of the family property. * * @return * possible object is * {@link String } * */ public String getFamily() { return family; } /** * Sets the value of the family property. * * @param value * allowed object is * {@link String } * */ public void setFamily(String value) { this.family = value; } /** * Gets the value of the middle property. * * @return * possible object is * {@link String } * */ public String getMiddle() { return middle; } /** * Sets the value of the middle property. * * @param value * allowed object is * {@link String } * */ public void setMiddle(String value) { this.middle = value; } /** * Gets the value of the suffix property. * * @return * possible object is * {@link String } * */ public String getSuffix() { return suffix; } /** * Sets the value of the suffix property. * * @param value * allowed object is * {@link String } * */ public void setSuffix(String value) { this.suffix = value; } /** * Gets the value of the nickname property. * * @return * possible object is * {@link String } * */ public String getNickname() { return nickname; } /** * Sets the value of the nickname property. * * @param value * allowed object is * {@link String } * */ public void setNickname(String value) { this.nickname = value; } /** * Gets the value of the extensions property. * * <p> * 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 <CODE>set</CODE> method for the extensions property. * * <p> * For example, to add a new item, do as follows: * <pre> * getExtensions().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Extension } * * */ public List<Extension> getExtensions() { if (extensions == null) { extensions = new ArrayList<Extension>(); } return this.extensions; } }