//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// 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.13 at 12:17:21 PM MEZ
//
package ch.fd.invoice400.response;
import java.math.BigInteger;
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;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>
* Java class for recordCantonalType complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="recordCantonalType">
* <simpleContent>
* <extension base="<http://www.xmlData.ch/xmlInvoice/XSD>stringType1_350">
* <attribute name="amount" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
* <attribute name="code" use="required" type="{http://www.xmlData.ch/xmlInvoice/XSD}stringType1_20" />
* <attribute name="comment" type="{http://www.xmlData.ch/xmlInvoice/XSD}stringType1_350" />
* <attribute name="date_begin" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
* <attribute name="date_end" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
* <attribute name="external_factor" default="1.0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}double">
* <minInclusive value="0.0"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="number" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" />
* <attribute name="obligation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="quantity" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
* <attribute name="record_id" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
* <attribute name="remark" type="{http://www.xmlData.ch/xmlInvoice/XSD}stringType1_350" />
* <attribute name="status" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="added"/>
* <enumeration value="corrected"/>
* <enumeration value="rejected"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="tariff_type" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <pattern value="[0-9A-Z]{3}"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="unit" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}double">
* <minInclusive value="0.0"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="unit_factor" default="1.0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}double">
* <minExclusive value="0.0"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="validate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="vat_rate" default="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}double">
* <minInclusive value="0"/>
* <maxInclusive value="100"/>
* </restriction>
* </simpleType>
* </attribute>
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "recordCantonalType", propOrder = {
"value"
})
public class RecordCantonalType {
@XmlValue
protected String value;
@XmlAttribute(required = true)
protected double amount;
@XmlAttribute(required = true)
protected String code;
@XmlAttribute
protected String comment;
@XmlAttribute(name = "date_begin", required = true)
protected XMLGregorianCalendar dateBegin;
@XmlAttribute(name = "date_end")
protected XMLGregorianCalendar dateEnd;
@XmlAttribute(name = "external_factor")
protected Double externalFactor;
@XmlAttribute
protected BigInteger number;
@XmlAttribute
protected Boolean obligation;
@XmlAttribute(required = true)
protected double quantity;
@XmlAttribute(name = "record_id", required = true)
protected BigInteger recordId;
@XmlAttribute
protected String remark;
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String status;
@XmlAttribute(name = "tariff_type", required = true)
protected String tariffType;
@XmlAttribute(required = true)
protected double unit;
@XmlAttribute(name = "unit_factor")
protected Double unitFactor;
@XmlAttribute
protected Boolean validate;
@XmlAttribute(name = "vat_rate")
protected Double vatRate;
/**
* 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 amount property.
*
*/
public double getAmount(){
return amount;
}
/**
* Sets the value of the amount property.
*
*/
public void setAmount(double value){
this.amount = 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;
}
/**
* Gets the value of the comment property.
*
* @return possible object is {@link String }
*
*/
public String getComment(){
return comment;
}
/**
* Sets the value of the comment property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setComment(String value){
this.comment = 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 externalFactor property.
*
* @return possible object is {@link Double }
*
*/
public double getExternalFactor(){
if (externalFactor == null) {
return 1.0D;
} else {
return externalFactor;
}
}
/**
* Sets the value of the externalFactor property.
*
* @param value
* allowed object is {@link Double }
*
*/
public void setExternalFactor(Double value){
this.externalFactor = value;
}
/**
* Gets the value of the number property.
*
* @return possible object is {@link BigInteger }
*
*/
public BigInteger getNumber(){
if (number == null) {
return new BigInteger("1");
} else {
return number;
}
}
/**
* Sets the value of the number property.
*
* @param value
* allowed object is {@link BigInteger }
*
*/
public void setNumber(BigInteger value){
this.number = value;
}
/**
* Gets the value of the obligation property.
*
* @return possible object is {@link Boolean }
*
*/
public boolean isObligation(){
if (obligation == null) {
return true;
} else {
return obligation;
}
}
/**
* Sets the value of the obligation property.
*
* @param value
* allowed object is {@link Boolean }
*
*/
public void setObligation(Boolean value){
this.obligation = value;
}
/**
* Gets the value of the quantity property.
*
*/
public double getQuantity(){
return quantity;
}
/**
* Sets the value of the quantity property.
*
*/
public void setQuantity(double value){
this.quantity = value;
}
/**
* Gets the value of the recordId property.
*
* @return possible object is {@link BigInteger }
*
*/
public BigInteger getRecordId(){
return recordId;
}
/**
* Sets the value of the recordId property.
*
* @param value
* allowed object is {@link BigInteger }
*
*/
public void setRecordId(BigInteger value){
this.recordId = value;
}
/**
* Gets the value of the remark property.
*
* @return possible object is {@link String }
*
*/
public String getRemark(){
return remark;
}
/**
* Sets the value of the remark property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setRemark(String value){
this.remark = value;
}
/**
* Gets the value of the status property.
*
* @return possible object is {@link String }
*
*/
public String getStatus(){
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setStatus(String value){
this.status = value;
}
/**
* Gets the value of the tariffType property.
*
* @return possible object is {@link String }
*
*/
public String getTariffType(){
return tariffType;
}
/**
* Sets the value of the tariffType property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setTariffType(String value){
this.tariffType = value;
}
/**
* Gets the value of the unit property.
*
*/
public double getUnit(){
return unit;
}
/**
* Sets the value of the unit property.
*
*/
public void setUnit(double value){
this.unit = value;
}
/**
* Gets the value of the unitFactor property.
*
* @return possible object is {@link Double }
*
*/
public double getUnitFactor(){
if (unitFactor == null) {
return 1.0D;
} else {
return unitFactor;
}
}
/**
* Sets the value of the unitFactor property.
*
* @param value
* allowed object is {@link Double }
*
*/
public void setUnitFactor(Double value){
this.unitFactor = value;
}
/**
* Gets the value of the validate property.
*
* @return possible object is {@link Boolean }
*
*/
public boolean isValidate(){
if (validate == null) {
return true;
} else {
return validate;
}
}
/**
* Sets the value of the validate property.
*
* @param value
* allowed object is {@link Boolean }
*
*/
public void setValidate(Boolean value){
this.validate = value;
}
/**
* Gets the value of the vatRate property.
*
* @return possible object is {@link Double }
*
*/
public double getVatRate(){
if (vatRate == null) {
return 0.0D;
} else {
return vatRate;
}
}
/**
* Sets the value of the vatRate property.
*
* @param value
* allowed object is {@link Double }
*
*/
public void setVatRate(Double value){
this.vatRate = value;
}
}