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

net.opengis.tjs.v_1_0.BoundingCoordinates Maven / Gradle / Ivy

The newest version!
//
// 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.02.26 at 05:07:06 PM AST 
//


package net.opengis.tjs.v_1_0;

import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
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.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBMergeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.MergeFrom2;
import org.jvnet.jaxb2_commons.lang.MergeStrategy2;
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;


/**
 * 

Java class for anonymous complex type. * *

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

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="North" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *         <element name="South" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *         <element name="East" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *         <element name="West" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "north", "south", "east", "west" }) @XmlRootElement(name = "BoundingCoordinates") public class BoundingCoordinates implements Cloneable, CopyTo2, Equals2, HashCode2, MergeFrom2, ToString2 { @XmlElement(name = "North", required = true) protected BigDecimal north; @XmlElement(name = "South", required = true) protected BigDecimal south; @XmlElement(name = "East", required = true) protected BigDecimal east; @XmlElement(name = "West", required = true) protected BigDecimal west; /** * Gets the value of the north property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getNorth() { return north; } /** * Sets the value of the north property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setNorth(BigDecimal value) { this.north = value; } public boolean isSetNorth() { return (this.north!= null); } /** * Gets the value of the south property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getSouth() { return south; } /** * Sets the value of the south property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setSouth(BigDecimal value) { this.south = value; } public boolean isSetSouth() { return (this.south!= null); } /** * Gets the value of the east property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getEast() { return east; } /** * Sets the value of the east property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setEast(BigDecimal value) { this.east = value; } public boolean isSetEast() { return (this.east!= null); } /** * Gets the value of the west property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getWest() { return west; } /** * Sets the value of the west property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setWest(BigDecimal value) { this.west = value; } public boolean isSetWest() { return (this.west!= null); } 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) { { BigDecimal theNorth; theNorth = this.getNorth(); strategy.appendField(locator, this, "north", buffer, theNorth, this.isSetNorth()); } { BigDecimal theSouth; theSouth = this.getSouth(); strategy.appendField(locator, this, "south", buffer, theSouth, this.isSetSouth()); } { BigDecimal theEast; theEast = this.getEast(); strategy.appendField(locator, this, "east", buffer, theEast, this.isSetEast()); } { BigDecimal theWest; theWest = this.getWest(); strategy.appendField(locator, this, "west", buffer, theWest, this.isSetWest()); } 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 BoundingCoordinates that = ((BoundingCoordinates) object); { BigDecimal lhsNorth; lhsNorth = this.getNorth(); BigDecimal rhsNorth; rhsNorth = that.getNorth(); if (!strategy.equals(LocatorUtils.property(thisLocator, "north", lhsNorth), LocatorUtils.property(thatLocator, "north", rhsNorth), lhsNorth, rhsNorth, this.isSetNorth(), that.isSetNorth())) { return false; } } { BigDecimal lhsSouth; lhsSouth = this.getSouth(); BigDecimal rhsSouth; rhsSouth = that.getSouth(); if (!strategy.equals(LocatorUtils.property(thisLocator, "south", lhsSouth), LocatorUtils.property(thatLocator, "south", rhsSouth), lhsSouth, rhsSouth, this.isSetSouth(), that.isSetSouth())) { return false; } } { BigDecimal lhsEast; lhsEast = this.getEast(); BigDecimal rhsEast; rhsEast = that.getEast(); if (!strategy.equals(LocatorUtils.property(thisLocator, "east", lhsEast), LocatorUtils.property(thatLocator, "east", rhsEast), lhsEast, rhsEast, this.isSetEast(), that.isSetEast())) { return false; } } { BigDecimal lhsWest; lhsWest = this.getWest(); BigDecimal rhsWest; rhsWest = that.getWest(); if (!strategy.equals(LocatorUtils.property(thisLocator, "west", lhsWest), LocatorUtils.property(thatLocator, "west", rhsWest), lhsWest, rhsWest, this.isSetWest(), that.isSetWest())) { 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; { BigDecimal theNorth; theNorth = this.getNorth(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "north", theNorth), currentHashCode, theNorth, this.isSetNorth()); } { BigDecimal theSouth; theSouth = this.getSouth(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "south", theSouth), currentHashCode, theSouth, this.isSetSouth()); } { BigDecimal theEast; theEast = this.getEast(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "east", theEast), currentHashCode, theEast, this.isSetEast()); } { BigDecimal theWest; theWest = this.getWest(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "west", theWest), currentHashCode, theWest, this.isSetWest()); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public Object clone() { return copyTo(createNewInstance()); } public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); } public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof BoundingCoordinates) { final BoundingCoordinates copy = ((BoundingCoordinates) draftCopy); { Boolean northShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetNorth()); if (northShouldBeCopiedAndSet == Boolean.TRUE) { BigDecimal sourceNorth; sourceNorth = this.getNorth(); BigDecimal copyNorth = ((BigDecimal) strategy.copy(LocatorUtils.property(locator, "north", sourceNorth), sourceNorth, this.isSetNorth())); copy.setNorth(copyNorth); } else { if (northShouldBeCopiedAndSet == Boolean.FALSE) { copy.north = null; } } } { Boolean southShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetSouth()); if (southShouldBeCopiedAndSet == Boolean.TRUE) { BigDecimal sourceSouth; sourceSouth = this.getSouth(); BigDecimal copySouth = ((BigDecimal) strategy.copy(LocatorUtils.property(locator, "south", sourceSouth), sourceSouth, this.isSetSouth())); copy.setSouth(copySouth); } else { if (southShouldBeCopiedAndSet == Boolean.FALSE) { copy.south = null; } } } { Boolean eastShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetEast()); if (eastShouldBeCopiedAndSet == Boolean.TRUE) { BigDecimal sourceEast; sourceEast = this.getEast(); BigDecimal copyEast = ((BigDecimal) strategy.copy(LocatorUtils.property(locator, "east", sourceEast), sourceEast, this.isSetEast())); copy.setEast(copyEast); } else { if (eastShouldBeCopiedAndSet == Boolean.FALSE) { copy.east = null; } } } { Boolean westShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetWest()); if (westShouldBeCopiedAndSet == Boolean.TRUE) { BigDecimal sourceWest; sourceWest = this.getWest(); BigDecimal copyWest = ((BigDecimal) strategy.copy(LocatorUtils.property(locator, "west", sourceWest), sourceWest, this.isSetWest())); copy.setWest(copyWest); } else { if (westShouldBeCopiedAndSet == Boolean.FALSE) { copy.west = null; } } } } return draftCopy; } public Object createNewInstance() { return new BoundingCoordinates(); } public void mergeFrom(Object left, Object right) { final MergeStrategy2 strategy = JAXBMergeStrategy.INSTANCE; mergeFrom(null, null, left, right, strategy); } public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy2 strategy) { if (right instanceof BoundingCoordinates) { final BoundingCoordinates target = this; final BoundingCoordinates leftObject = ((BoundingCoordinates) left); final BoundingCoordinates rightObject = ((BoundingCoordinates) right); { Boolean northShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetNorth(), rightObject.isSetNorth()); if (northShouldBeMergedAndSet == Boolean.TRUE) { BigDecimal lhsNorth; lhsNorth = leftObject.getNorth(); BigDecimal rhsNorth; rhsNorth = rightObject.getNorth(); BigDecimal mergedNorth = ((BigDecimal) strategy.merge(LocatorUtils.property(leftLocator, "north", lhsNorth), LocatorUtils.property(rightLocator, "north", rhsNorth), lhsNorth, rhsNorth, leftObject.isSetNorth(), rightObject.isSetNorth())); target.setNorth(mergedNorth); } else { if (northShouldBeMergedAndSet == Boolean.FALSE) { target.north = null; } } } { Boolean southShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetSouth(), rightObject.isSetSouth()); if (southShouldBeMergedAndSet == Boolean.TRUE) { BigDecimal lhsSouth; lhsSouth = leftObject.getSouth(); BigDecimal rhsSouth; rhsSouth = rightObject.getSouth(); BigDecimal mergedSouth = ((BigDecimal) strategy.merge(LocatorUtils.property(leftLocator, "south", lhsSouth), LocatorUtils.property(rightLocator, "south", rhsSouth), lhsSouth, rhsSouth, leftObject.isSetSouth(), rightObject.isSetSouth())); target.setSouth(mergedSouth); } else { if (southShouldBeMergedAndSet == Boolean.FALSE) { target.south = null; } } } { Boolean eastShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetEast(), rightObject.isSetEast()); if (eastShouldBeMergedAndSet == Boolean.TRUE) { BigDecimal lhsEast; lhsEast = leftObject.getEast(); BigDecimal rhsEast; rhsEast = rightObject.getEast(); BigDecimal mergedEast = ((BigDecimal) strategy.merge(LocatorUtils.property(leftLocator, "east", lhsEast), LocatorUtils.property(rightLocator, "east", rhsEast), lhsEast, rhsEast, leftObject.isSetEast(), rightObject.isSetEast())); target.setEast(mergedEast); } else { if (eastShouldBeMergedAndSet == Boolean.FALSE) { target.east = null; } } } { Boolean westShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetWest(), rightObject.isSetWest()); if (westShouldBeMergedAndSet == Boolean.TRUE) { BigDecimal lhsWest; lhsWest = leftObject.getWest(); BigDecimal rhsWest; rhsWest = rightObject.getWest(); BigDecimal mergedWest = ((BigDecimal) strategy.merge(LocatorUtils.property(leftLocator, "west", lhsWest), LocatorUtils.property(rightLocator, "west", rhsWest), lhsWest, rhsWest, leftObject.isSetWest(), rightObject.isSetWest())); target.setWest(mergedWest); } else { if (westShouldBeMergedAndSet == Boolean.FALSE) { target.west = null; } } } } } public BoundingCoordinates withNorth(BigDecimal value) { setNorth(value); return this; } public BoundingCoordinates withSouth(BigDecimal value) { setSouth(value); return this; } public BoundingCoordinates withEast(BigDecimal value) { setEast(value); return this; } public BoundingCoordinates withWest(BigDecimal value) { setWest(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy