All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.SubscriberConsumptionType Maven / Gradle / Ivy

//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.11 
// Visite http://java.sun.com/xml/jaxb 
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen. 
// Generado el: 2021.03.22 a las 07:02:09 PM CET 
//


package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ConsumptionIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NoteType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SpecificationTypeCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TotalMeteredQuantityType;
import oasis.names.specification.ubl.schema.xsd.commonextensioncomponents_2.UBLExtensionsType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Clase Java para SubscriberConsumptionType complex type. * *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. * *

 * <complexType name="SubscriberConsumptionType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2}UBLExtensions" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ConsumptionID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SpecificationTypeCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Note" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TotalMeteredQuantity" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}SubscriberParty" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}UtilityConsumptionPoint"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}OnAccountPayment" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}Consumption" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}SupplierConsumption" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SubscriberConsumptionType", propOrder = { "ublExtensions", "consumptionID", "specificationTypeCode", "note", "totalMeteredQuantity", "subscriberParty", "utilityConsumptionPoint", "onAccountPayment", "consumption", "supplierConsumption" }) public class SubscriberConsumptionType implements Serializable, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = 100L; @XmlElement(name = "UBLExtensions", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2") protected UBLExtensionsType ublExtensions; @XmlElement(name = "ConsumptionID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected ConsumptionIDType consumptionID; @XmlElement(name = "SpecificationTypeCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected SpecificationTypeCodeType specificationTypeCode; @XmlElement(name = "Note", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected List note; @XmlElement(name = "TotalMeteredQuantity", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected TotalMeteredQuantityType totalMeteredQuantity; @XmlElement(name = "SubscriberParty") protected PartyType subscriberParty; @XmlElement(name = "UtilityConsumptionPoint", required = true) protected ConsumptionPointType utilityConsumptionPoint; @XmlElement(name = "OnAccountPayment") protected List onAccountPayment; @XmlElement(name = "Consumption") protected ConsumptionType consumption; @XmlElement(name = "SupplierConsumption") protected List supplierConsumption; /** * Obtiene el valor de la propiedad ublExtensions. * * @return * possible object is * {@link UBLExtensionsType } * */ public UBLExtensionsType getUBLExtensions() { return ublExtensions; } /** * Define el valor de la propiedad ublExtensions. * * @param value * allowed object is * {@link UBLExtensionsType } * */ public void setUBLExtensions(UBLExtensionsType value) { this.ublExtensions = value; } /** * Obtiene el valor de la propiedad consumptionID. * * @return * possible object is * {@link ConsumptionIDType } * */ public ConsumptionIDType getConsumptionID() { return consumptionID; } /** * Define el valor de la propiedad consumptionID. * * @param value * allowed object is * {@link ConsumptionIDType } * */ public void setConsumptionID(ConsumptionIDType value) { this.consumptionID = value; } /** * Obtiene el valor de la propiedad specificationTypeCode. * * @return * possible object is * {@link SpecificationTypeCodeType } * */ public SpecificationTypeCodeType getSpecificationTypeCode() { return specificationTypeCode; } /** * Define el valor de la propiedad specificationTypeCode. * * @param value * allowed object is * {@link SpecificationTypeCodeType } * */ public void setSpecificationTypeCode(SpecificationTypeCodeType value) { this.specificationTypeCode = value; } /** * Gets the value of the note 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 note property. * *

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

     *    getNote().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link NoteType } * * */ public List getNote() { if (note == null) { note = new ArrayList(); } return this.note; } /** * Obtiene el valor de la propiedad totalMeteredQuantity. * * @return * possible object is * {@link TotalMeteredQuantityType } * */ public TotalMeteredQuantityType getTotalMeteredQuantity() { return totalMeteredQuantity; } /** * Define el valor de la propiedad totalMeteredQuantity. * * @param value * allowed object is * {@link TotalMeteredQuantityType } * */ public void setTotalMeteredQuantity(TotalMeteredQuantityType value) { this.totalMeteredQuantity = value; } /** * Obtiene el valor de la propiedad subscriberParty. * * @return * possible object is * {@link PartyType } * */ public PartyType getSubscriberParty() { return subscriberParty; } /** * Define el valor de la propiedad subscriberParty. * * @param value * allowed object is * {@link PartyType } * */ public void setSubscriberParty(PartyType value) { this.subscriberParty = value; } /** * Obtiene el valor de la propiedad utilityConsumptionPoint. * * @return * possible object is * {@link ConsumptionPointType } * */ public ConsumptionPointType getUtilityConsumptionPoint() { return utilityConsumptionPoint; } /** * Define el valor de la propiedad utilityConsumptionPoint. * * @param value * allowed object is * {@link ConsumptionPointType } * */ public void setUtilityConsumptionPoint(ConsumptionPointType value) { this.utilityConsumptionPoint = value; } /** * Gets the value of the onAccountPayment 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 onAccountPayment property. * *

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

     *    getOnAccountPayment().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link OnAccountPaymentType } * * */ public List getOnAccountPayment() { if (onAccountPayment == null) { onAccountPayment = new ArrayList(); } return this.onAccountPayment; } /** * Obtiene el valor de la propiedad consumption. * * @return * possible object is * {@link ConsumptionType } * */ public ConsumptionType getConsumption() { return consumption; } /** * Define el valor de la propiedad consumption. * * @param value * allowed object is * {@link ConsumptionType } * */ public void setConsumption(ConsumptionType value) { this.consumption = value; } /** * Gets the value of the supplierConsumption 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 supplierConsumption property. * *

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

     *    getSupplierConsumption().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SupplierConsumptionType } * * */ public List getSupplierConsumption() { if (supplierConsumption == null) { supplierConsumption = new ArrayList(); } return this.supplierConsumption; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { UBLExtensionsType theUBLExtensions; theUBLExtensions = this.getUBLExtensions(); strategy.appendField(locator, this, "ublExtensions", buffer, theUBLExtensions, (this.ublExtensions!= null)); } { ConsumptionIDType theConsumptionID; theConsumptionID = this.getConsumptionID(); strategy.appendField(locator, this, "consumptionID", buffer, theConsumptionID, (this.consumptionID!= null)); } { SpecificationTypeCodeType theSpecificationTypeCode; theSpecificationTypeCode = this.getSpecificationTypeCode(); strategy.appendField(locator, this, "specificationTypeCode", buffer, theSpecificationTypeCode, (this.specificationTypeCode!= null)); } { List theNote; theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null); strategy.appendField(locator, this, "note", buffer, theNote, ((this.note!= null)&&(!this.note.isEmpty()))); } { TotalMeteredQuantityType theTotalMeteredQuantity; theTotalMeteredQuantity = this.getTotalMeteredQuantity(); strategy.appendField(locator, this, "totalMeteredQuantity", buffer, theTotalMeteredQuantity, (this.totalMeteredQuantity!= null)); } { PartyType theSubscriberParty; theSubscriberParty = this.getSubscriberParty(); strategy.appendField(locator, this, "subscriberParty", buffer, theSubscriberParty, (this.subscriberParty!= null)); } { ConsumptionPointType theUtilityConsumptionPoint; theUtilityConsumptionPoint = this.getUtilityConsumptionPoint(); strategy.appendField(locator, this, "utilityConsumptionPoint", buffer, theUtilityConsumptionPoint, (this.utilityConsumptionPoint!= null)); } { List theOnAccountPayment; theOnAccountPayment = (((this.onAccountPayment!= null)&&(!this.onAccountPayment.isEmpty()))?this.getOnAccountPayment():null); strategy.appendField(locator, this, "onAccountPayment", buffer, theOnAccountPayment, ((this.onAccountPayment!= null)&&(!this.onAccountPayment.isEmpty()))); } { ConsumptionType theConsumption; theConsumption = this.getConsumption(); strategy.appendField(locator, this, "consumption", buffer, theConsumption, (this.consumption!= null)); } { List theSupplierConsumption; theSupplierConsumption = (((this.supplierConsumption!= null)&&(!this.supplierConsumption.isEmpty()))?this.getSupplierConsumption():null); strategy.appendField(locator, this, "supplierConsumption", buffer, theSupplierConsumption, ((this.supplierConsumption!= null)&&(!this.supplierConsumption.isEmpty()))); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final SubscriberConsumptionType that = ((SubscriberConsumptionType) object); { UBLExtensionsType lhsUBLExtensions; lhsUBLExtensions = this.getUBLExtensions(); UBLExtensionsType rhsUBLExtensions; rhsUBLExtensions = that.getUBLExtensions(); if (!strategy.equals(LocatorUtils.property(thisLocator, "ublExtensions", lhsUBLExtensions), LocatorUtils.property(thatLocator, "ublExtensions", rhsUBLExtensions), lhsUBLExtensions, rhsUBLExtensions, (this.ublExtensions!= null), (that.ublExtensions!= null))) { return false; } } { ConsumptionIDType lhsConsumptionID; lhsConsumptionID = this.getConsumptionID(); ConsumptionIDType rhsConsumptionID; rhsConsumptionID = that.getConsumptionID(); if (!strategy.equals(LocatorUtils.property(thisLocator, "consumptionID", lhsConsumptionID), LocatorUtils.property(thatLocator, "consumptionID", rhsConsumptionID), lhsConsumptionID, rhsConsumptionID, (this.consumptionID!= null), (that.consumptionID!= null))) { return false; } } { SpecificationTypeCodeType lhsSpecificationTypeCode; lhsSpecificationTypeCode = this.getSpecificationTypeCode(); SpecificationTypeCodeType rhsSpecificationTypeCode; rhsSpecificationTypeCode = that.getSpecificationTypeCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "specificationTypeCode", lhsSpecificationTypeCode), LocatorUtils.property(thatLocator, "specificationTypeCode", rhsSpecificationTypeCode), lhsSpecificationTypeCode, rhsSpecificationTypeCode, (this.specificationTypeCode!= null), (that.specificationTypeCode!= null))) { return false; } } { List lhsNote; lhsNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null); List rhsNote; rhsNote = (((that.note!= null)&&(!that.note.isEmpty()))?that.getNote():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "note", lhsNote), LocatorUtils.property(thatLocator, "note", rhsNote), lhsNote, rhsNote, ((this.note!= null)&&(!this.note.isEmpty())), ((that.note!= null)&&(!that.note.isEmpty())))) { return false; } } { TotalMeteredQuantityType lhsTotalMeteredQuantity; lhsTotalMeteredQuantity = this.getTotalMeteredQuantity(); TotalMeteredQuantityType rhsTotalMeteredQuantity; rhsTotalMeteredQuantity = that.getTotalMeteredQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "totalMeteredQuantity", lhsTotalMeteredQuantity), LocatorUtils.property(thatLocator, "totalMeteredQuantity", rhsTotalMeteredQuantity), lhsTotalMeteredQuantity, rhsTotalMeteredQuantity, (this.totalMeteredQuantity!= null), (that.totalMeteredQuantity!= null))) { return false; } } { PartyType lhsSubscriberParty; lhsSubscriberParty = this.getSubscriberParty(); PartyType rhsSubscriberParty; rhsSubscriberParty = that.getSubscriberParty(); if (!strategy.equals(LocatorUtils.property(thisLocator, "subscriberParty", lhsSubscriberParty), LocatorUtils.property(thatLocator, "subscriberParty", rhsSubscriberParty), lhsSubscriberParty, rhsSubscriberParty, (this.subscriberParty!= null), (that.subscriberParty!= null))) { return false; } } { ConsumptionPointType lhsUtilityConsumptionPoint; lhsUtilityConsumptionPoint = this.getUtilityConsumptionPoint(); ConsumptionPointType rhsUtilityConsumptionPoint; rhsUtilityConsumptionPoint = that.getUtilityConsumptionPoint(); if (!strategy.equals(LocatorUtils.property(thisLocator, "utilityConsumptionPoint", lhsUtilityConsumptionPoint), LocatorUtils.property(thatLocator, "utilityConsumptionPoint", rhsUtilityConsumptionPoint), lhsUtilityConsumptionPoint, rhsUtilityConsumptionPoint, (this.utilityConsumptionPoint!= null), (that.utilityConsumptionPoint!= null))) { return false; } } { List lhsOnAccountPayment; lhsOnAccountPayment = (((this.onAccountPayment!= null)&&(!this.onAccountPayment.isEmpty()))?this.getOnAccountPayment():null); List rhsOnAccountPayment; rhsOnAccountPayment = (((that.onAccountPayment!= null)&&(!that.onAccountPayment.isEmpty()))?that.getOnAccountPayment():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "onAccountPayment", lhsOnAccountPayment), LocatorUtils.property(thatLocator, "onAccountPayment", rhsOnAccountPayment), lhsOnAccountPayment, rhsOnAccountPayment, ((this.onAccountPayment!= null)&&(!this.onAccountPayment.isEmpty())), ((that.onAccountPayment!= null)&&(!that.onAccountPayment.isEmpty())))) { return false; } } { ConsumptionType lhsConsumption; lhsConsumption = this.getConsumption(); ConsumptionType rhsConsumption; rhsConsumption = that.getConsumption(); if (!strategy.equals(LocatorUtils.property(thisLocator, "consumption", lhsConsumption), LocatorUtils.property(thatLocator, "consumption", rhsConsumption), lhsConsumption, rhsConsumption, (this.consumption!= null), (that.consumption!= null))) { return false; } } { List lhsSupplierConsumption; lhsSupplierConsumption = (((this.supplierConsumption!= null)&&(!this.supplierConsumption.isEmpty()))?this.getSupplierConsumption():null); List rhsSupplierConsumption; rhsSupplierConsumption = (((that.supplierConsumption!= null)&&(!that.supplierConsumption.isEmpty()))?that.getSupplierConsumption():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "supplierConsumption", lhsSupplierConsumption), LocatorUtils.property(thatLocator, "supplierConsumption", rhsSupplierConsumption), lhsSupplierConsumption, rhsSupplierConsumption, ((this.supplierConsumption!= null)&&(!this.supplierConsumption.isEmpty())), ((that.supplierConsumption!= null)&&(!that.supplierConsumption.isEmpty())))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { UBLExtensionsType theUBLExtensions; theUBLExtensions = this.getUBLExtensions(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ublExtensions", theUBLExtensions), currentHashCode, theUBLExtensions, (this.ublExtensions!= null)); } { ConsumptionIDType theConsumptionID; theConsumptionID = this.getConsumptionID(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "consumptionID", theConsumptionID), currentHashCode, theConsumptionID, (this.consumptionID!= null)); } { SpecificationTypeCodeType theSpecificationTypeCode; theSpecificationTypeCode = this.getSpecificationTypeCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "specificationTypeCode", theSpecificationTypeCode), currentHashCode, theSpecificationTypeCode, (this.specificationTypeCode!= null)); } { List theNote; theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "note", theNote), currentHashCode, theNote, ((this.note!= null)&&(!this.note.isEmpty()))); } { TotalMeteredQuantityType theTotalMeteredQuantity; theTotalMeteredQuantity = this.getTotalMeteredQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalMeteredQuantity", theTotalMeteredQuantity), currentHashCode, theTotalMeteredQuantity, (this.totalMeteredQuantity!= null)); } { PartyType theSubscriberParty; theSubscriberParty = this.getSubscriberParty(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subscriberParty", theSubscriberParty), currentHashCode, theSubscriberParty, (this.subscriberParty!= null)); } { ConsumptionPointType theUtilityConsumptionPoint; theUtilityConsumptionPoint = this.getUtilityConsumptionPoint(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "utilityConsumptionPoint", theUtilityConsumptionPoint), currentHashCode, theUtilityConsumptionPoint, (this.utilityConsumptionPoint!= null)); } { List theOnAccountPayment; theOnAccountPayment = (((this.onAccountPayment!= null)&&(!this.onAccountPayment.isEmpty()))?this.getOnAccountPayment():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onAccountPayment", theOnAccountPayment), currentHashCode, theOnAccountPayment, ((this.onAccountPayment!= null)&&(!this.onAccountPayment.isEmpty()))); } { ConsumptionType theConsumption; theConsumption = this.getConsumption(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "consumption", theConsumption), currentHashCode, theConsumption, (this.consumption!= null)); } { List theSupplierConsumption; theSupplierConsumption = (((this.supplierConsumption!= null)&&(!this.supplierConsumption.isEmpty()))?this.getSupplierConsumption():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "supplierConsumption", theSupplierConsumption), currentHashCode, theSupplierConsumption, ((this.supplierConsumption!= null)&&(!this.supplierConsumption.isEmpty()))); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy