// // 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.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.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlValue; import javax.xml.datatype.XMLGregorianCalendar; /** * <p> * Java class for recordMigelType complex type. * * <p> * The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="recordMigelType"> * <simpleContent> * <extension base="<http://www.xmlData.ch/xmlInvoice/XSD>stringType1_350"> * <attribute name="record_id" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" /> * <attribute name="number" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" default="1" /> * <attribute name="tariff_type" default="452"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <pattern value="[0-9A-Z]{3}"/> * </restriction> * </simpleType> * </attribute> * <attribute name="code" use="required" type="{http://www.xmlData.ch/xmlInvoice/XSD}stringType1_20" /> * <attribute name="quantity" use="required" type="{http://www.w3.org/2001/XMLSchema}double" /> * <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="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="external_factor" default="1.0"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}double"> * <minInclusive value="0.0"/> * </restriction> * </simpleType> * </attribute> * <attribute name="amount" use="required" type="{http://www.w3.org/2001/XMLSchema}double" /> * <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> * <attribute name="validate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> * <attribute name="obligation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> * <attribute name="remark" type="{http://www.xmlData.ch/xmlInvoice/XSD}stringType1_350" /> * </extension> * </simpleContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "recordMigelType", propOrder = { "value" }) public class RecordMigelType { @XmlValue protected String value; @XmlAttribute(name = "record_id", required = true) @XmlSchemaType(name = "positiveInteger") protected BigInteger recordId; @XmlAttribute(name = "number") @XmlSchemaType(name = "positiveInteger") protected BigInteger number; @XmlAttribute(name = "tariff_type") protected String tariffType; @XmlAttribute(name = "code", required = true) protected String code; @XmlAttribute(name = "quantity", required = true) protected double quantity; @XmlAttribute(name = "date_begin", required = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar dateBegin; @XmlAttribute(name = "date_end") @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar dateEnd; @XmlAttribute(name = "unit", required = true) protected double unit; @XmlAttribute(name = "unit_factor") protected Double unitFactor; @XmlAttribute(name = "external_factor") protected Double externalFactor; @XmlAttribute(name = "amount", required = true) protected double amount; @XmlAttribute(name = "vat_rate") protected Double vatRate; @XmlAttribute(name = "validate") protected Boolean validate; @XmlAttribute(name = "obligation") protected Boolean obligation; @XmlAttribute(name = "remark") protected String remark; /** * 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 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 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 tariffType property. * * @return possible object is {@link String } * */ public String getTariffType(){ if (tariffType == null) { return "452"; } else { 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 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 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 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 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 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 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 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; } /** * 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 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 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; } }