/** * Create an instance of {@link LinearRingType } * */ public LinearRingType createLinearRingType() { return new LinearRingType(); }
public Object clone() { return copyTo(createNewInstance()); }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); super.copyTo(locator, draftCopy, strategy); if (draftCopy instanceof LinearRingType) { final LinearRingType copy = ((LinearRingType) draftCopy); if (this.isSetCoord()) { List<CoordType> sourceCoord; sourceCoord = this.getCoord(); @SuppressWarnings("unchecked") List<CoordType> copyCoord = ((List<CoordType> ) strategy.copy(LocatorUtils.property(locator, "coord", sourceCoord), sourceCoord)); copy.unsetCoord(); List<CoordType> uniqueCoordl = copy.getCoord(); uniqueCoordl.addAll(copyCoord); } else { copy.unsetCoord(); } if (this.isSetCoordinates()) { CoordinatesType sourceCoordinates; sourceCoordinates = this.getCoordinates(); CoordinatesType copyCoordinates = ((CoordinatesType) strategy.copy(LocatorUtils.property(locator, "coordinates", sourceCoordinates), sourceCoordinates)); copy.setCoordinates(copyCoordinates); } else { copy.coordinates = null; } } return draftCopy; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { List<CoordType> theCoord; theCoord = (this.isSetCoord()?this.getCoord():null); strategy.appendField(locator, this, "coord", buffer, theCoord, this.isSetCoord()); } { CoordinatesType theCoordinates; theCoordinates = this.getCoordinates(); strategy.appendField(locator, this, "coordinates", buffer, theCoordinates, this.isSetCoordinates()); } return buffer; }
public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { super.mergeFrom(leftLocator, rightLocator, left, right, strategy); if (right instanceof LinearRingType) { final LinearRingType target = this; final LinearRingType leftObject = ((LinearRingType) left); final LinearRingType rightObject = ((LinearRingType) right); { List<CoordType> lhsCoord; lhsCoord = leftObject.getCoord(); List<CoordType> rhsCoord; rhsCoord = rightObject.getCoord(); target.unsetCoord(); List<CoordType> uniqueCoordl = target.getCoord(); uniqueCoordl.addAll(((List<CoordType> ) strategy.merge(LocatorUtils.property(leftLocator, "coord", lhsCoord), LocatorUtils.property(rightLocator, "coord", rhsCoord), lhsCoord, rhsCoord))); } { CoordinatesType lhsCoordinates; lhsCoordinates = leftObject.getCoordinates(); CoordinatesType rhsCoordinates; rhsCoordinates = rightObject.getCoordinates(); target.setCoordinates(((CoordinatesType) strategy.merge(LocatorUtils.property(leftLocator, "coordinates", lhsCoordinates), LocatorUtils.property(rightLocator, "coordinates", rhsCoordinates), lhsCoordinates, rhsCoordinates))); } } }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { List<CoordType> theCoord; theCoord = this.getCoord(); strategy.appendField(locator, this, "coord", buffer, theCoord); } { CoordinatesType theCoordinates; theCoordinates = this.getCoordinates(); strategy.appendField(locator, this, "coordinates", buffer, theCoordinates); } return buffer; }
public void setCoord(List<CoordType> value) { this.coord = null; if (value!= null) { List<CoordType> draftl = this.getCoord(); draftl.addAll(value); } }
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 String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
final LinearRingType rightObject = ((LinearRingType) right); Boolean coordShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetCoord(), rightObject.isSetCoord()); if (coordShouldBeMergedAndSet == Boolean.TRUE) { List<CoordType> lhsCoord; lhsCoord = (leftObject.isSetCoord()?leftObject.getCoord():null); List<CoordType> rhsCoord; rhsCoord = (rightObject.isSetCoord()?rightObject.getCoord():null); List<CoordType> mergedCoord = ((List<CoordType> ) strategy.merge(LocatorUtils.property(leftLocator, "coord", lhsCoord), LocatorUtils.property(rightLocator, "coord", rhsCoord), lhsCoord, rhsCoord, leftObject.isSetCoord(), rightObject.isSetCoord())); target.unsetCoord(); if (mergedCoord!= null) { List<CoordType> uniqueCoordl = target.getCoord(); uniqueCoordl.addAll(mergedCoord); target.unsetCoord(); Boolean coordinatesShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetCoordinates(), rightObject.isSetCoordinates()); if (coordinatesShouldBeMergedAndSet == Boolean.TRUE) { CoordinatesType lhsCoordinates; lhsCoordinates = leftObject.getCoordinates(); CoordinatesType rhsCoordinates; rhsCoordinates = rightObject.getCoordinates(); CoordinatesType mergedCoordinates = ((CoordinatesType) strategy.merge(LocatorUtils.property(leftLocator, "coordinates", lhsCoordinates), LocatorUtils.property(rightLocator, "coordinates", rhsCoordinates), lhsCoordinates, rhsCoordinates, leftObject.isSetCoordinates(), rightObject.isSetCoordinates())); target.setCoordinates(mergedCoordinates); } else { if (coordinatesShouldBeMergedAndSet == Boolean.FALSE) {
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = super.hashCode(locator, strategy); { List<CoordType> theCoord; theCoord = (this.isSetCoord()?this.getCoord():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "coord", theCoord), currentHashCode, theCoord, this.isSetCoord()); } { CoordinatesType theCoordinates; theCoordinates = this.getCoordinates(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "coordinates", theCoordinates), currentHashCode, theCoordinates, this.isSetCoordinates()); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { List<CoordType> theCoord; theCoord = this.getCoord(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "coord", theCoord), currentHashCode, theCoord); } { CoordinatesType theCoordinates; theCoordinates = this.getCoordinates(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "coordinates", theCoordinates), currentHashCode, theCoordinates); } return currentHashCode; }
public LinearRingType withCoord(Collection<CoordType> values) { if (values!= null) { getCoord().addAll(values); } return this; }
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 String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }