/** * Create an instance of {@link BoundingBoxType } * */ public BoundingBoxType createBoundingBoxType() { return new BoundingBoxType(); }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); return buffer; }
public Object clone() { return copyTo(createNewInstance()); }
Boolean lowerCornerShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetLowerCorner(), rightObject.isSetLowerCorner()); if (lowerCornerShouldBeMergedAndSet == Boolean.TRUE) { List<Double> lhsLowerCorner; lhsLowerCorner = (leftObject.isSetLowerCorner()?leftObject.getLowerCorner():null); List<Double> rhsLowerCorner; rhsLowerCorner = (rightObject.isSetLowerCorner()?rightObject.getLowerCorner():null); List<Double> mergedLowerCorner = ((List<Double> ) strategy.merge(LocatorUtils.property(leftLocator, "lowerCorner", lhsLowerCorner), LocatorUtils.property(rightLocator, "lowerCorner", rhsLowerCorner), lhsLowerCorner, rhsLowerCorner, leftObject.isSetLowerCorner(), rightObject.isSetLowerCorner())); target.unsetLowerCorner(); if (mergedLowerCorner!= null) { List<Double> uniqueLowerCornerl = target.getLowerCorner(); uniqueLowerCornerl.addAll(mergedLowerCorner); target.unsetLowerCorner(); Boolean upperCornerShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetUpperCorner(), rightObject.isSetUpperCorner()); if (upperCornerShouldBeMergedAndSet == Boolean.TRUE) { List<Double> lhsUpperCorner; lhsUpperCorner = (leftObject.isSetUpperCorner()?leftObject.getUpperCorner():null); List<Double> rhsUpperCorner; rhsUpperCorner = (rightObject.isSetUpperCorner()?rightObject.getUpperCorner():null); List<Double> mergedUpperCorner = ((List<Double> ) strategy.merge(LocatorUtils.property(leftLocator, "upperCorner", lhsUpperCorner), LocatorUtils.property(rightLocator, "upperCorner", rhsUpperCorner), lhsUpperCorner, rhsUpperCorner, leftObject.isSetUpperCorner(), rightObject.isSetUpperCorner())); target.unsetUpperCorner(); if (mergedUpperCorner!= null) { List<Double> uniqueUpperCornerl = target.getUpperCorner(); uniqueUpperCornerl.addAll(mergedUpperCorner); target.unsetUpperCorner(); Boolean crsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetCrs(), rightObject.isSetCrs());
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { List<Double> theLowerCorner; theLowerCorner = (this.isSetLowerCorner()?this.getLowerCorner():null); strategy.appendField(locator, this, "lowerCorner", buffer, theLowerCorner, this.isSetLowerCorner()); } { List<Double> theUpperCorner; theUpperCorner = (this.isSetUpperCorner()?this.getUpperCorner():null); strategy.appendField(locator, this, "upperCorner", buffer, theUpperCorner, this.isSetUpperCorner()); } { String theCrs; theCrs = this.getCrs(); strategy.appendField(locator, this, "crs", buffer, theCrs, this.isSetCrs()); } { BigInteger theDimensions; theDimensions = this.getDimensions(); strategy.appendField(locator, this, "dimensions", buffer, theDimensions, this.isSetDimensions()); } return buffer; }
lhsLowerCorner = leftObject.getLowerCorner(); List<Double> rhsLowerCorner; rhsLowerCorner = rightObject.getLowerCorner(); target.lowerCorner = null; List<Double> uniqueLowerCornerl = target.getLowerCorner(); uniqueLowerCornerl.addAll(((List<Double> ) strategy.merge(LocatorUtils.property(leftLocator, "lowerCorner", lhsLowerCorner), LocatorUtils.property(rightLocator, "lowerCorner", rhsLowerCorner), lhsLowerCorner, rhsLowerCorner))); lhsUpperCorner = leftObject.getUpperCorner(); List<Double> rhsUpperCorner; rhsUpperCorner = rightObject.getUpperCorner(); target.upperCorner = null; List<Double> uniqueUpperCornerl = target.getUpperCorner(); uniqueUpperCornerl.addAll(((List<Double> ) strategy.merge(LocatorUtils.property(leftLocator, "upperCorner", lhsUpperCorner), LocatorUtils.property(rightLocator, "upperCorner", rhsUpperCorner), lhsUpperCorner, rhsUpperCorner))); lhsCrs = leftObject.getCrs(); String rhsCrs; rhsCrs = rightObject.getCrs(); target.setCrs(((String) strategy.merge(LocatorUtils.property(leftLocator, "crs", lhsCrs), LocatorUtils.property(rightLocator, "crs", rhsCrs), lhsCrs, rhsCrs))); lhsDimensions = leftObject.getDimensions(); BigInteger rhsDimensions; rhsDimensions = rightObject.getDimensions(); target.setDimensions(((BigInteger) strategy.merge(LocatorUtils.property(leftLocator, "dimensions", lhsDimensions), LocatorUtils.property(rightLocator, "dimensions", rhsDimensions), lhsDimensions, rhsDimensions)));
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { List<Double> theLowerCorner; theLowerCorner = this.getLowerCorner(); strategy.appendField(locator, this, "lowerCorner", buffer, theLowerCorner); } { List<Double> theUpperCorner; theUpperCorner = this.getUpperCorner(); strategy.appendField(locator, this, "upperCorner", buffer, theUpperCorner); } { String theCrs; theCrs = this.getCrs(); strategy.appendField(locator, this, "crs", buffer, theCrs); } { BigInteger theDimensions; theDimensions = this.getDimensions(); strategy.appendField(locator, this, "dimensions", buffer, theDimensions); } return buffer; }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public BoundingBoxType withLowerCorner(Double... values) { if (values!= null) { for (Double value: values) { getLowerCorner().add(value); } } return this; }
public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public BoundingBoxType withUpperCorner(Collection<Double> values) { if (values!= null) { getUpperCorner().addAll(values); } return this; }
public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof BoundingBoxType) { final BoundingBoxType copy = ((BoundingBoxType) draftCopy); Boolean lowerCornerShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetLowerCorner()); if (lowerCornerShouldBeCopiedAndSet == Boolean.TRUE) { List<Double> sourceLowerCorner; sourceLowerCorner = (this.isSetLowerCorner()?this.getLowerCorner():null); @SuppressWarnings("unchecked") List<Double> copyLowerCorner = ((List<Double> ) strategy.copy(LocatorUtils.property(locator, "lowerCorner", sourceLowerCorner), sourceLowerCorner, this.isSetLowerCorner())); copy.unsetLowerCorner(); if (copyLowerCorner!= null) { List<Double> uniqueLowerCornerl = copy.getLowerCorner(); uniqueLowerCornerl.addAll(copyLowerCorner); copy.unsetLowerCorner(); Boolean upperCornerShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetUpperCorner()); if (upperCornerShouldBeCopiedAndSet == Boolean.TRUE) { List<Double> sourceUpperCorner; sourceUpperCorner = (this.isSetUpperCorner()?this.getUpperCorner():null); @SuppressWarnings("unchecked") List<Double> copyUpperCorner = ((List<Double> ) strategy.copy(LocatorUtils.property(locator, "upperCorner", sourceUpperCorner), sourceUpperCorner, this.isSetUpperCorner())); copy.unsetUpperCorner(); if (copyUpperCorner!= null) { List<Double> uniqueUpperCornerl = copy.getUpperCorner(); uniqueUpperCornerl.addAll(copyUpperCorner); copy.unsetUpperCorner();
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List<Double> theLowerCorner; theLowerCorner = (this.isSetLowerCorner()?this.getLowerCorner():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lowerCorner", theLowerCorner), currentHashCode, theLowerCorner, this.isSetLowerCorner()); } { List<Double> theUpperCorner; theUpperCorner = (this.isSetUpperCorner()?this.getUpperCorner():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "upperCorner", theUpperCorner), currentHashCode, theUpperCorner, this.isSetUpperCorner()); } { String theCrs; theCrs = this.getCrs(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "crs", theCrs), currentHashCode, theCrs, this.isSetCrs()); } { BigInteger theDimensions; theDimensions = this.getDimensions(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dimensions", theDimensions), currentHashCode, theDimensions, this.isSetDimensions()); } return currentHashCode; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof BoundingBoxType) { final BoundingBoxType copy = ((BoundingBoxType) draftCopy); if ((this.lowerCorner!= null)&&(!this.lowerCorner.isEmpty())) { List<Double> sourceLowerCorner; sourceLowerCorner = this.getLowerCorner(); @SuppressWarnings("unchecked") List<Double> copyLowerCorner = ((List<Double> ) strategy.copy(LocatorUtils.property(locator, "lowerCorner", sourceLowerCorner), sourceLowerCorner)); copy.lowerCorner = null; List<Double> uniqueLowerCornerl = copy.getLowerCorner(); uniqueLowerCornerl.addAll(copyLowerCorner); } else { sourceUpperCorner = this.getUpperCorner(); @SuppressWarnings("unchecked") List<Double> copyUpperCorner = ((List<Double> ) strategy.copy(LocatorUtils.property(locator, "upperCorner", sourceUpperCorner), sourceUpperCorner)); copy.upperCorner = null; List<Double> uniqueUpperCornerl = copy.getUpperCorner(); uniqueUpperCornerl.addAll(copyUpperCorner); } else { sourceCrs = this.getCrs(); String copyCrs = ((String) strategy.copy(LocatorUtils.property(locator, "crs", sourceCrs), sourceCrs)); copy.setCrs(copyCrs); } else { copy.crs = null; sourceDimensions = this.getDimensions(); BigInteger copyDimensions = ((BigInteger) strategy.copy(LocatorUtils.property(locator, "dimensions", sourceDimensions), sourceDimensions));
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { List<Double> theLowerCorner; theLowerCorner = this.getLowerCorner(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lowerCorner", theLowerCorner), currentHashCode, theLowerCorner); } { List<Double> theUpperCorner; theUpperCorner = this.getUpperCorner(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "upperCorner", theUpperCorner), currentHashCode, theUpperCorner); } { String theCrs; theCrs = this.getCrs(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "crs", theCrs), currentHashCode, theCrs); } { BigInteger theDimensions; theDimensions = this.getDimensions(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dimensions", theDimensions), currentHashCode, theDimensions); } return currentHashCode; }
public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public void setLowerCorner(List<Double> value) { this.lowerCorner = null; if (value!= null) { List<Double> draftl = this.getLowerCorner(); draftl.addAll(value); } }
public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public BoundingBoxType withUpperCorner(Double... values) { if (values!= null) { for (Double value: values) { getUpperCorner().add(value); } } return this; }