//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// 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: 2015.03.18 at 01:35:39 PM CET
//
package ch.fd.invoice400.request;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>
* Java class for detailType complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="detailType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="service_locality" type="{http://www.xmlData.ch/xmlInvoice/XSD}localityAddressType" minOccurs="0"/>
* <element name="diagnosis" type="{http://www.xmlData.ch/xmlInvoice/XSD}diagnosisType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="surgery" type="{http://www.xmlData.ch/xmlInvoice/XSD}surgeryType" maxOccurs="unbounded" minOccurs="0"/>
* <choice>
* <element name="kvg" type="{http://www.xmlData.ch/xmlInvoice/XSD}kvgLawType"/>
* <element name="vvg" type="{http://www.xmlData.ch/xmlInvoice/XSD}vvgLawType"/>
* <element name="uvg" type="{http://www.xmlData.ch/xmlInvoice/XSD}uvgLawType"/>
* <element name="ivg" type="{http://www.xmlData.ch/xmlInvoice/XSD}ivgLawType"/>
* <element name="mvg" type="{http://www.xmlData.ch/xmlInvoice/XSD}mvgLawType"/>
* </choice>
* <element name="services" type="{http://www.xmlData.ch/xmlInvoice/XSD}servicesType"/>
* </sequence>
* <attribute name="date_begin" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
* <attribute name="date_end" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
* <attribute name="canton" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="AG"/>
* <enumeration value="AI"/>
* <enumeration value="AR"/>
* <enumeration value="BE"/>
* <enumeration value="BL"/>
* <enumeration value="BS"/>
* <enumeration value="FR"/>
* <enumeration value="GE"/>
* <enumeration value="GL"/>
* <enumeration value="GR"/>
* <enumeration value="JU"/>
* <enumeration value="LU"/>
* <enumeration value="NE"/>
* <enumeration value="NW"/>
* <enumeration value="OW"/>
* <enumeration value="SG"/>
* <enumeration value="SH"/>
* <enumeration value="SO"/>
* <enumeration value="SZ"/>
* <enumeration value="TI"/>
* <enumeration value="TG"/>
* <enumeration value="UR"/>
* <enumeration value="VD"/>
* <enumeration value="VS"/>
* <enumeration value="ZG"/>
* <enumeration value="ZH"/>
* <enumeration value="LI"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="service_locality" default="practice">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="practice"/>
* <enumeration value="hospital"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "detailType", propOrder = {
"serviceLocality", "diagnosis", "surgery", "kvg", "vvg", "uvg", "ivg", "mvg", "services"
})
public class DetailType {
@XmlElement(name = "service_locality")
protected LocalityAddressType serviceLocality;
protected List<DiagnosisType> diagnosis;
protected List<SurgeryType> surgery;
protected KvgLawType kvg;
protected VvgLawType vvg;
protected UvgLawType uvg;
protected IvgLawType ivg;
protected MvgLawType mvg;
@XmlElement(required = true)
protected ServicesType services;
@XmlAttribute(name = "date_begin", required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dateBegin;
@XmlAttribute(name = "date_end", required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dateEnd;
@XmlAttribute(name = "canton", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String canton;
@XmlAttribute(name = "service_locality")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String serviceLocalityAttribute;
/**
* Gets the value of the serviceLocality property.
*
* @return possible object is {@link LocalityAddressType }
*
*/
public LocalityAddressType getServiceLocality(){
return serviceLocality;
}
/**
* Sets the value of the serviceLocality property.
*
* @param value
* allowed object is {@link LocalityAddressType }
*
*/
public void setServiceLocality(LocalityAddressType value){
this.serviceLocality = value;
}
/**
* Gets the value of the diagnosis 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 diagnosis property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getDiagnosis().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list {@link DiagnosisType }
*
*
*/
public List<DiagnosisType> getDiagnosis(){
if (diagnosis == null) {
diagnosis = new ArrayList<DiagnosisType>();
}
return this.diagnosis;
}
/**
* Gets the value of the surgery 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 surgery property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getSurgery().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list {@link SurgeryType }
*
*
*/
public List<SurgeryType> getSurgery(){
if (surgery == null) {
surgery = new ArrayList<SurgeryType>();
}
return this.surgery;
}
/**
* Gets the value of the kvg property.
*
* @return possible object is {@link KvgLawType }
*
*/
public KvgLawType getKvg(){
return kvg;
}
/**
* Sets the value of the kvg property.
*
* @param value
* allowed object is {@link KvgLawType }
*
*/
public void setKvg(KvgLawType value){
this.kvg = value;
}
/**
* Gets the value of the vvg property.
*
* @return possible object is {@link VvgLawType }
*
*/
public VvgLawType getVvg(){
return vvg;
}
/**
* Sets the value of the vvg property.
*
* @param value
* allowed object is {@link VvgLawType }
*
*/
public void setVvg(VvgLawType value){
this.vvg = value;
}
/**
* Gets the value of the uvg property.
*
* @return possible object is {@link UvgLawType }
*
*/
public UvgLawType getUvg(){
return uvg;
}
/**
* Sets the value of the uvg property.
*
* @param value
* allowed object is {@link UvgLawType }
*
*/
public void setUvg(UvgLawType value){
this.uvg = value;
}
/**
* Gets the value of the ivg property.
*
* @return possible object is {@link IvgLawType }
*
*/
public IvgLawType getIvg(){
return ivg;
}
/**
* Sets the value of the ivg property.
*
* @param value
* allowed object is {@link IvgLawType }
*
*/
public void setIvg(IvgLawType value){
this.ivg = value;
}
/**
* Gets the value of the mvg property.
*
* @return possible object is {@link MvgLawType }
*
*/
public MvgLawType getMvg(){
return mvg;
}
/**
* Sets the value of the mvg property.
*
* @param value
* allowed object is {@link MvgLawType }
*
*/
public void setMvg(MvgLawType value){
this.mvg = value;
}
/**
* Gets the value of the services property.
*
* @return possible object is {@link ServicesType }
*
*/
public ServicesType getServices(){
return services;
}
/**
* Sets the value of the services property.
*
* @param value
* allowed object is {@link ServicesType }
*
*/
public void setServices(ServicesType value){
this.services = value;
}
/**
* Gets the value of the dateBegin property.
*
* @return possible object is {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDateBegin(){
return dateBegin;
}
/**
* Sets the value of the dateBegin property.
*
* @param value
* allowed object is {@link XMLGregorianCalendar }
*
*/
public void setDateBegin(XMLGregorianCalendar value){
this.dateBegin = value;
}
/**
* Gets the value of the dateEnd property.
*
* @return possible object is {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDateEnd(){
return dateEnd;
}
/**
* Sets the value of the dateEnd property.
*
* @param value
* allowed object is {@link XMLGregorianCalendar }
*
*/
public void setDateEnd(XMLGregorianCalendar value){
this.dateEnd = value;
}
/**
* Gets the value of the canton property.
*
* @return possible object is {@link String }
*
*/
public String getCanton(){
return canton;
}
/**
* Sets the value of the canton property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setCanton(String value){
this.canton = value;
}
/**
* Gets the value of the serviceLocalityAttribute property.
*
* @return possible object is {@link String }
*
*/
public String getServiceLocalityAttribute(){
if (serviceLocalityAttribute == null) {
return "practice";
} else {
return serviceLocalityAttribute;
}
}
/**
* Sets the value of the serviceLocalityAttribute property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setServiceLocalityAttribute(String value){
this.serviceLocalityAttribute = value;
}
}