//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.12-1.0.0.0_2-1-12-ea 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2017.03.07 at 10:44:52 AM CET 
//

package com.ejie.x43k.xml;

import java.io.Serializable;
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 personType complex type.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name="personType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;all>
 *         &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="ape1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="ape2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="personType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="holderShip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="contacts" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="contact" type="{http://ejie.com/x43k/xml}contactType" maxOccurs="unbounded" minOccurs="0"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/all>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * @author GFI-NORTE
 */
@XmlAccessorType(value = XmlAccessType.FIELD)
@XmlType(name = "personType", propOrder = {

})
public class PersonType implements Serializable {

	private final static long serialVersionUID = 12343L;
	private String id;
	private String ape1;
	private String ape2;
	private String name;
	private String personType;
	private String holderShip;
	private PersonType.Contacts contacts;

	/**
	 * Gets the value of the id property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getId() {
		return this.id;
	}

	/**
	 * Sets the value of the id property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setId(String value) {
		this.id = value;
	}

	/**
	 * Checks if is sets the id.
	 *
	 * @return boolean
	 */
	public boolean isSetId() {
		return (this.id != null);
	}

	/**
	 * Gets the value of the ape1 property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getApe1() {
		return this.ape1;
	}

	/**
	 * Sets the value of the ape1 property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setApe1(String value) {
		this.ape1 = value;
	}

	/**
	 * Checks if is sets the ape 1.
	 *
	 * @return boolean
	 */
	public boolean isSetApe1() {
		return (this.ape1 != null);
	}

	/**
	 * Gets the value of the ape2 property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getApe2() {
		return this.ape2;
	}

	/**
	 * Sets the value of the ape2 property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setApe2(String value) {
		this.ape2 = value;
	}

	/**
	 * Checks if is sets the ape 2.
	 *
	 * @return boolean
	 */
	public boolean isSetApe2() {
		return (this.ape2 != null);
	}

	/**
	 * Gets the value of the name property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * Sets the value of the name property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setName(String value) {
		this.name = value;
	}

	/**
	 * Checks if is sets the name.
	 *
	 * @return boolean
	 */
	public boolean isSetName() {
		return (this.name != null);
	}

	/**
	 * Gets the value of the personType property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getPersonType() {
		return this.personType;
	}

	/**
	 * Sets the value of the personType property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setPersonType(String value) {
		this.personType = value;
	}

	/**
	 * Checks if is sets the person type.
	 *
	 * @return boolean
	 */
	public boolean isSetPersonType() {
		return (this.personType != null);
	}

	/**
	 * Gets the value of the holderShip property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getHolderShip() {
		return this.holderShip;
	}

	/**
	 * Sets the value of the holderShip property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setHolderShip(String value) {
		this.holderShip = value;
	}

	/**
	 * Checks if is sets the holder ship.
	 *
	 * @return boolean
	 */
	public boolean isSetHolderShip() {
		return (this.holderShip != null);
	}

	/**
	 * Gets the value of the contacts property.
	 * 
	 * @return possible object is {@link PersonType.Contacts }
	 * 
	 */
	public PersonType.Contacts getContacts() {
		return this.contacts;
	}

	/**
	 * Sets the value of the contacts property.
	 * 
	 * @param value
	 *            allowed object is {@link PersonType.Contacts }
	 * 
	 */
	public void setContacts(PersonType.Contacts value) {
		this.contacts = value;
	}

	/**
	 * Checks if is sets the contacts.
	 *
	 * @return boolean
	 */
	public boolean isSetContacts() {
		return (this.contacts != null);
	}

	/**
	 * <p>
	 * Java class for anonymous complex type.
	 * 
	 * <p>
	 * The following schema fragment specifies the expected content contained
	 * within this class.
	 * 
	 * <pre>
	 * &lt;complexType>
	 *   &lt;complexContent>
	 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *       &lt;sequence>
	 *         &lt;element name="contact" type="{http://ejie.com/x43k/xml}contactType" maxOccurs="unbounded" minOccurs="0"/>
	 *       &lt;/sequence>
	 *     &lt;/restriction>
	 *   &lt;/complexContent>
	 * &lt;/complexType>
	 * </pre>
	 * 
	 * 
	 */
	@XmlAccessorType(value = XmlAccessType.FIELD)
	@XmlType(name = "", propOrder = { "contact" })
	public static class Contacts implements Serializable {

		private final static long serialVersionUID = 12343L;
		private List<ContactType> contact;

		/**
		 * Gets the value of the contact 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 contact property.
		 * 
		 * <p>
		 * For example, to add a new item, do as follows:
		 * 
		 * <pre>
		 * getContact().add(newItem);
		 * </pre>
		 * 
		 * 
		 * <p>
		 * Objects of the following type(s) are allowed in the list
		 * {@link ContactType }
		 * 
		 * @return List<ContactType>
		 */
		public List<ContactType> getContact() {
			if (contact == null) {
				contact = new ArrayList<ContactType>();
			}
			return this.contact;
		}

		/**
		 * Checks if is sets the contact.
		 *
		 * @return boolean
		 */
		public boolean isSetContact() {
			return ((this.contact != null) && (!this.contact.isEmpty()));
		}

		/**
		 * unsetContact.
		 */
		public void unsetContact() {
			this.contact = null;
		}

	}

}
