org.etsi.uri._01903.v1_3.SignatureProductionPlaceV2Type 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 org.etsi.uri._01903.v1_3;
import java.io.Serializable;
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 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 SignatureProductionPlaceV2Type complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType name="SignatureProductionPlaceV2Type">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="City" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="StreetAddress" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="StateOrProvince" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="PostalCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="CountryName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SignatureProductionPlaceV2Type", propOrder = {
"city",
"streetAddress",
"stateOrProvince",
"postalCode",
"countryName"
})
public class SignatureProductionPlaceV2Type implements Serializable, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = 100L;
@XmlElement(name = "City")
protected String city;
@XmlElement(name = "StreetAddress")
protected String streetAddress;
@XmlElement(name = "StateOrProvince")
protected String stateOrProvince;
@XmlElement(name = "PostalCode")
protected String postalCode;
@XmlElement(name = "CountryName")
protected String countryName;
/**
* Obtiene el valor de la propiedad city.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCity() {
return city;
}
/**
* Define el valor de la propiedad city.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCity(String value) {
this.city = value;
}
/**
* Obtiene el valor de la propiedad streetAddress.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStreetAddress() {
return streetAddress;
}
/**
* Define el valor de la propiedad streetAddress.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStreetAddress(String value) {
this.streetAddress = value;
}
/**
* Obtiene el valor de la propiedad stateOrProvince.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStateOrProvince() {
return stateOrProvince;
}
/**
* Define el valor de la propiedad stateOrProvince.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStateOrProvince(String value) {
this.stateOrProvince = value;
}
/**
* Obtiene el valor de la propiedad postalCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPostalCode() {
return postalCode;
}
/**
* Define el valor de la propiedad postalCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPostalCode(String value) {
this.postalCode = value;
}
/**
* Obtiene el valor de la propiedad countryName.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCountryName() {
return countryName;
}
/**
* Define el valor de la propiedad countryName.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCountryName(String value) {
this.countryName = value;
}
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) {
{
String theCity;
theCity = this.getCity();
strategy.appendField(locator, this, "city", buffer, theCity, (this.city!= null));
}
{
String theStreetAddress;
theStreetAddress = this.getStreetAddress();
strategy.appendField(locator, this, "streetAddress", buffer, theStreetAddress, (this.streetAddress!= null));
}
{
String theStateOrProvince;
theStateOrProvince = this.getStateOrProvince();
strategy.appendField(locator, this, "stateOrProvince", buffer, theStateOrProvince, (this.stateOrProvince!= null));
}
{
String thePostalCode;
thePostalCode = this.getPostalCode();
strategy.appendField(locator, this, "postalCode", buffer, thePostalCode, (this.postalCode!= null));
}
{
String theCountryName;
theCountryName = this.getCountryName();
strategy.appendField(locator, this, "countryName", buffer, theCountryName, (this.countryName!= null));
}
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 SignatureProductionPlaceV2Type that = ((SignatureProductionPlaceV2Type) object);
{
String lhsCity;
lhsCity = this.getCity();
String rhsCity;
rhsCity = that.getCity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "city", lhsCity), LocatorUtils.property(thatLocator, "city", rhsCity), lhsCity, rhsCity, (this.city!= null), (that.city!= null))) {
return false;
}
}
{
String lhsStreetAddress;
lhsStreetAddress = this.getStreetAddress();
String rhsStreetAddress;
rhsStreetAddress = that.getStreetAddress();
if (!strategy.equals(LocatorUtils.property(thisLocator, "streetAddress", lhsStreetAddress), LocatorUtils.property(thatLocator, "streetAddress", rhsStreetAddress), lhsStreetAddress, rhsStreetAddress, (this.streetAddress!= null), (that.streetAddress!= null))) {
return false;
}
}
{
String lhsStateOrProvince;
lhsStateOrProvince = this.getStateOrProvince();
String rhsStateOrProvince;
rhsStateOrProvince = that.getStateOrProvince();
if (!strategy.equals(LocatorUtils.property(thisLocator, "stateOrProvince", lhsStateOrProvince), LocatorUtils.property(thatLocator, "stateOrProvince", rhsStateOrProvince), lhsStateOrProvince, rhsStateOrProvince, (this.stateOrProvince!= null), (that.stateOrProvince!= null))) {
return false;
}
}
{
String lhsPostalCode;
lhsPostalCode = this.getPostalCode();
String rhsPostalCode;
rhsPostalCode = that.getPostalCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "postalCode", lhsPostalCode), LocatorUtils.property(thatLocator, "postalCode", rhsPostalCode), lhsPostalCode, rhsPostalCode, (this.postalCode!= null), (that.postalCode!= null))) {
return false;
}
}
{
String lhsCountryName;
lhsCountryName = this.getCountryName();
String rhsCountryName;
rhsCountryName = that.getCountryName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "countryName", lhsCountryName), LocatorUtils.property(thatLocator, "countryName", rhsCountryName), lhsCountryName, rhsCountryName, (this.countryName!= null), (that.countryName!= null))) {
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;
{
String theCity;
theCity = this.getCity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "city", theCity), currentHashCode, theCity, (this.city!= null));
}
{
String theStreetAddress;
theStreetAddress = this.getStreetAddress();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "streetAddress", theStreetAddress), currentHashCode, theStreetAddress, (this.streetAddress!= null));
}
{
String theStateOrProvince;
theStateOrProvince = this.getStateOrProvince();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stateOrProvince", theStateOrProvince), currentHashCode, theStateOrProvince, (this.stateOrProvince!= null));
}
{
String thePostalCode;
thePostalCode = this.getPostalCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postalCode", thePostalCode), currentHashCode, thePostalCode, (this.postalCode!= null));
}
{
String theCountryName;
theCountryName = this.getCountryName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "countryName", theCountryName), currentHashCode, theCountryName, (this.countryName!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}