Class ConsumptionHistoryType


  • public class ConsumptionHistoryType
    extends Object

    Java class for ConsumptionHistoryType complex type.

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

     <complexType name="ConsumptionHistoryType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}MeterNumber" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Quantity"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Amount" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ConsumptionLevelCode" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ConsumptionLevel" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Description" maxOccurs="unbounded" minOccurs="0"/>
             <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}Period"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • ConsumptionHistoryType

        public ConsumptionHistoryType()
    • Method Detail

      • setMeterNumber

        public void setMeterNumber​(MeterNumberType value)
        Sets the value of the meterNumber property.
        Parameters:
        value - allowed object is MeterNumberType
      • getQuantity

        public QuantityType getQuantity()
        Gets the value of the quantity property.
        Returns:
        possible object is QuantityType
      • setQuantity

        public void setQuantity​(QuantityType value)
        Sets the value of the quantity property.
        Parameters:
        value - allowed object is QuantityType
      • getAmount

        public AmountType getAmount()
        Gets the value of the amount property.
        Returns:
        possible object is AmountType
      • setAmount

        public void setAmount​(AmountType value)
        Sets the value of the amount property.
        Parameters:
        value - allowed object is AmountType
      • getDescription

        public List<DescriptionType> getDescription()
        Gets the value of the description 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 description property.

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

            getDescription().add(newItem);
         

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

      • getPeriod

        public PeriodType getPeriod()
        Gets the value of the period property.
        Returns:
        possible object is PeriodType
      • setPeriod

        public void setPeriod​(PeriodType value)
        Sets the value of the period property.
        Parameters:
        value - allowed object is PeriodType