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

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

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2016.07.19 at 05:08:29 PM CEST 
//


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.MeterConstantCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.MeterConstantType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.MeterNameType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.MeterNumberType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TotalDeliveredQuantityType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for MeterType complex type. * *

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

 * <complexType name="MeterType">
 *   <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}MeterName" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}MeterConstant" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}MeterConstantCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TotalDeliveredQuantity" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}MeterReading" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}MeterProperty" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "MeterType", propOrder = { "meterNumber", "meterName", "meterConstant", "meterConstantCode", "totalDeliveredQuantity", "meterReading", "meterProperty" }) public class MeterType implements Serializable, Equals, HashCode, ToString { private final static long serialVersionUID = 100L; @XmlElement(name = "MeterNumber", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected MeterNumberType meterNumber; @XmlElement(name = "MeterName", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected MeterNameType meterName; @XmlElement(name = "MeterConstant", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected MeterConstantType meterConstant; @XmlElement(name = "MeterConstantCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected MeterConstantCodeType meterConstantCode; @XmlElement(name = "TotalDeliveredQuantity", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected TotalDeliveredQuantityType totalDeliveredQuantity; @XmlElement(name = "MeterReading") protected List meterReading; @XmlElement(name = "MeterProperty") protected List meterProperty; /** * Gets the value of the meterNumber property. * * @return * possible object is * {@link MeterNumberType } * */ public MeterNumberType getMeterNumber() { return meterNumber; } /** * Sets the value of the meterNumber property. * * @param value * allowed object is * {@link MeterNumberType } * */ public void setMeterNumber(MeterNumberType value) { this.meterNumber = value; } /** * Gets the value of the meterName property. * * @return * possible object is * {@link MeterNameType } * */ public MeterNameType getMeterName() { return meterName; } /** * Sets the value of the meterName property. * * @param value * allowed object is * {@link MeterNameType } * */ public void setMeterName(MeterNameType value) { this.meterName = value; } /** * Gets the value of the meterConstant property. * * @return * possible object is * {@link MeterConstantType } * */ public MeterConstantType getMeterConstant() { return meterConstant; } /** * Sets the value of the meterConstant property. * * @param value * allowed object is * {@link MeterConstantType } * */ public void setMeterConstant(MeterConstantType value) { this.meterConstant = value; } /** * Gets the value of the meterConstantCode property. * * @return * possible object is * {@link MeterConstantCodeType } * */ public MeterConstantCodeType getMeterConstantCode() { return meterConstantCode; } /** * Sets the value of the meterConstantCode property. * * @param value * allowed object is * {@link MeterConstantCodeType } * */ public void setMeterConstantCode(MeterConstantCodeType value) { this.meterConstantCode = value; } /** * Gets the value of the totalDeliveredQuantity property. * * @return * possible object is * {@link TotalDeliveredQuantityType } * */ public TotalDeliveredQuantityType getTotalDeliveredQuantity() { return totalDeliveredQuantity; } /** * Sets the value of the totalDeliveredQuantity property. * * @param value * allowed object is * {@link TotalDeliveredQuantityType } * */ public void setTotalDeliveredQuantity(TotalDeliveredQuantityType value) { this.totalDeliveredQuantity = value; } /** * Gets the value of the meterReading 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 meterReading property. * *

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

     *    getMeterReading().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MeterReadingType } * * */ public List getMeterReading() { if (meterReading == null) { meterReading = new ArrayList(); } return this.meterReading; } /** * Gets the value of the meterProperty 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 meterProperty property. * *

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

     *    getMeterProperty().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MeterPropertyType } * * */ public List getMeterProperty() { if (meterProperty == null) { meterProperty = new ArrayList(); } return this.meterProperty; } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { MeterNumberType theMeterNumber; theMeterNumber = this.getMeterNumber(); strategy.appendField(locator, this, "meterNumber", buffer, theMeterNumber); } { MeterNameType theMeterName; theMeterName = this.getMeterName(); strategy.appendField(locator, this, "meterName", buffer, theMeterName); } { MeterConstantType theMeterConstant; theMeterConstant = this.getMeterConstant(); strategy.appendField(locator, this, "meterConstant", buffer, theMeterConstant); } { MeterConstantCodeType theMeterConstantCode; theMeterConstantCode = this.getMeterConstantCode(); strategy.appendField(locator, this, "meterConstantCode", buffer, theMeterConstantCode); } { TotalDeliveredQuantityType theTotalDeliveredQuantity; theTotalDeliveredQuantity = this.getTotalDeliveredQuantity(); strategy.appendField(locator, this, "totalDeliveredQuantity", buffer, theTotalDeliveredQuantity); } { List theMeterReading; theMeterReading = (((this.meterReading!= null)&&(!this.meterReading.isEmpty()))?this.getMeterReading():null); strategy.appendField(locator, this, "meterReading", buffer, theMeterReading); } { List theMeterProperty; theMeterProperty = (((this.meterProperty!= null)&&(!this.meterProperty.isEmpty()))?this.getMeterProperty():null); strategy.appendField(locator, this, "meterProperty", buffer, theMeterProperty); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof MeterType)) { return false; } if (this == object) { return true; } final MeterType that = ((MeterType) object); { MeterNumberType lhsMeterNumber; lhsMeterNumber = this.getMeterNumber(); MeterNumberType rhsMeterNumber; rhsMeterNumber = that.getMeterNumber(); if (!strategy.equals(LocatorUtils.property(thisLocator, "meterNumber", lhsMeterNumber), LocatorUtils.property(thatLocator, "meterNumber", rhsMeterNumber), lhsMeterNumber, rhsMeterNumber)) { return false; } } { MeterNameType lhsMeterName; lhsMeterName = this.getMeterName(); MeterNameType rhsMeterName; rhsMeterName = that.getMeterName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "meterName", lhsMeterName), LocatorUtils.property(thatLocator, "meterName", rhsMeterName), lhsMeterName, rhsMeterName)) { return false; } } { MeterConstantType lhsMeterConstant; lhsMeterConstant = this.getMeterConstant(); MeterConstantType rhsMeterConstant; rhsMeterConstant = that.getMeterConstant(); if (!strategy.equals(LocatorUtils.property(thisLocator, "meterConstant", lhsMeterConstant), LocatorUtils.property(thatLocator, "meterConstant", rhsMeterConstant), lhsMeterConstant, rhsMeterConstant)) { return false; } } { MeterConstantCodeType lhsMeterConstantCode; lhsMeterConstantCode = this.getMeterConstantCode(); MeterConstantCodeType rhsMeterConstantCode; rhsMeterConstantCode = that.getMeterConstantCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "meterConstantCode", lhsMeterConstantCode), LocatorUtils.property(thatLocator, "meterConstantCode", rhsMeterConstantCode), lhsMeterConstantCode, rhsMeterConstantCode)) { return false; } } { TotalDeliveredQuantityType lhsTotalDeliveredQuantity; lhsTotalDeliveredQuantity = this.getTotalDeliveredQuantity(); TotalDeliveredQuantityType rhsTotalDeliveredQuantity; rhsTotalDeliveredQuantity = that.getTotalDeliveredQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "totalDeliveredQuantity", lhsTotalDeliveredQuantity), LocatorUtils.property(thatLocator, "totalDeliveredQuantity", rhsTotalDeliveredQuantity), lhsTotalDeliveredQuantity, rhsTotalDeliveredQuantity)) { return false; } } { List lhsMeterReading; lhsMeterReading = (((this.meterReading!= null)&&(!this.meterReading.isEmpty()))?this.getMeterReading():null); List rhsMeterReading; rhsMeterReading = (((that.meterReading!= null)&&(!that.meterReading.isEmpty()))?that.getMeterReading():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "meterReading", lhsMeterReading), LocatorUtils.property(thatLocator, "meterReading", rhsMeterReading), lhsMeterReading, rhsMeterReading)) { return false; } } { List lhsMeterProperty; lhsMeterProperty = (((this.meterProperty!= null)&&(!this.meterProperty.isEmpty()))?this.getMeterProperty():null); List rhsMeterProperty; rhsMeterProperty = (((that.meterProperty!= null)&&(!that.meterProperty.isEmpty()))?that.getMeterProperty():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "meterProperty", lhsMeterProperty), LocatorUtils.property(thatLocator, "meterProperty", rhsMeterProperty), lhsMeterProperty, rhsMeterProperty)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { MeterNumberType theMeterNumber; theMeterNumber = this.getMeterNumber(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "meterNumber", theMeterNumber), currentHashCode, theMeterNumber); } { MeterNameType theMeterName; theMeterName = this.getMeterName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "meterName", theMeterName), currentHashCode, theMeterName); } { MeterConstantType theMeterConstant; theMeterConstant = this.getMeterConstant(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "meterConstant", theMeterConstant), currentHashCode, theMeterConstant); } { MeterConstantCodeType theMeterConstantCode; theMeterConstantCode = this.getMeterConstantCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "meterConstantCode", theMeterConstantCode), currentHashCode, theMeterConstantCode); } { TotalDeliveredQuantityType theTotalDeliveredQuantity; theTotalDeliveredQuantity = this.getTotalDeliveredQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalDeliveredQuantity", theTotalDeliveredQuantity), currentHashCode, theTotalDeliveredQuantity); } { List theMeterReading; theMeterReading = (((this.meterReading!= null)&&(!this.meterReading.isEmpty()))?this.getMeterReading():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "meterReading", theMeterReading), currentHashCode, theMeterReading); } { List theMeterProperty; theMeterProperty = (((this.meterProperty!= null)&&(!this.meterProperty.isEmpty()))?this.getMeterProperty():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "meterProperty", theMeterProperty), currentHashCode, theMeterProperty); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy