Class ConsumptionType


  • public class ConsumptionType
    extends Object

    Java class for ConsumptionType complex type

    .

    The following schema fragment specifies the expected content contained within this class.

    
     <complexType name="ConsumptionType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}UtilityStatementTypeCode" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}MainPeriod" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AllowanceCharge" maxOccurs="unbounded" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}TaxTotal" maxOccurs="unbounded" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}EnergyWaterSupply" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}TelecommunicationsSupply" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}LegalMonetaryTotal"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • ConsumptionType

        public ConsumptionType()
    • Method Detail

      • getMainPeriod

        public PeriodType getMainPeriod()
        Gets the value of the mainPeriod property.
        Returns:
        possible object is PeriodType
      • setMainPeriod

        public void setMainPeriod​(PeriodType value)
        Sets the value of the mainPeriod property.
        Parameters:
        value - allowed object is PeriodType
      • getAllowanceCharge

        public List<AllowanceChargeType> getAllowanceCharge()
        Gets the value of the allowanceCharge property.

        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 set method for the allowanceCharge property.

        For example, to add a new item, do as follows:

         getAllowanceCharge().add(newItem);
         

        Objects of the following type(s) are allowed in the list AllowanceChargeType

        Returns:
        The value of the allowanceCharge property.
      • getTaxTotal

        public List<TaxTotalType> getTaxTotal()
        Gets the value of the taxTotal property.

        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 set method for the taxTotal property.

        For example, to add a new item, do as follows:

         getTaxTotal().add(newItem);
         

        Objects of the following type(s) are allowed in the list TaxTotalType

        Returns:
        The value of the taxTotal property.
      • getLegalMonetaryTotal

        public MonetaryTotalType getLegalMonetaryTotal()
        Gets the value of the legalMonetaryTotal property.
        Returns:
        possible object is MonetaryTotalType
      • setLegalMonetaryTotal

        public void setLegalMonetaryTotal​(MonetaryTotalType value)
        Sets the value of the legalMonetaryTotal property.
        Parameters:
        value - allowed object is MonetaryTotalType