//
// 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>
* Java class for surgeryType complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="surgeryType">
* <simpleContent>
* <extension base="<http://www.xmlData.ch/xmlInvoice/XSD>stringType0_350">
* <attribute name="type" default="by_contract">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="CHOP"/>
* <enumeration value="cantonal"/>
* <enumeration value="by_contract"/>
* <enumeration value="freetext"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="code" type="{http://www.xmlData.ch/xmlInvoice/XSD}stringType1_12" />
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "surgeryType", propOrder = {
"value"
})
public class SurgeryType {
@XmlValue
protected String value;
@XmlAttribute(name = "type")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String type;
@XmlAttribute(name = "code")
protected String code;
/**
* Gets the value of the value property.
*
* @return possible object is {@link String }
*
*/
public String getValue(){
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setValue(String value){
this.value = value;
}
/**
* Gets the value of the type property.
*
* @return possible object is {@link String }
*
*/
public String getType(){
if (type == null) {
return "by_contract";
} else {
return type;
}
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setType(String value){
this.type = value;
}
/**
* Gets the value of the code property.
*
* @return possible object is {@link String }
*
*/
public String getCode(){
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setCode(String value){
this.code = value;
}
}