/** * Create an instance of {@link PolygonPropertyType } * */ public PolygonPropertyType createPolygonPropertyType() { return new PolygonPropertyType(); }
public PolygonPropertyType withPolygon(PolygonType value) { setPolygon(value); return this; }
public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public Object clone() { return copyTo(createNewInstance()); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof PolygonPropertyType) { final PolygonPropertyType copy = ((PolygonPropertyType) draftCopy); if (this.isSetPolygon()) { PolygonType sourcePolygon; sourcePolygon = this.getPolygon(); PolygonType copyPolygon = ((PolygonType) strategy.copy(LocatorUtils.property(locator, "polygon", sourcePolygon), sourcePolygon)); copy.setPolygon(copyPolygon); } else { copy.polygon = null; if (this.isSetRemoteSchema()) { String sourceRemoteSchema; sourceRemoteSchema = this.getRemoteSchema(); String copyRemoteSchema = ((String) strategy.copy(LocatorUtils.property(locator, "remoteSchema", sourceRemoteSchema), sourceRemoteSchema)); copy.setRemoteSchema(copyRemoteSchema); } else { copy.remoteSchema = null; if (this.isSetType()) { String sourceType; sourceType = this.getType(); String copyType = ((String) strategy.copy(LocatorUtils.property(locator, "type", sourceType), sourceType)); copy.setType(copyType); } else { copy.type = null; if (this.isSetHref()) { String sourceHref;
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { thePolygon = this.getPolygon(); strategy.appendField(locator, this, "polygon", buffer, thePolygon, this.isSetPolygon()); theRemoteSchema = this.getRemoteSchema(); strategy.appendField(locator, this, "remoteSchema", buffer, theRemoteSchema, this.isSetRemoteSchema()); theTYPE = this.getTYPE(); strategy.appendField(locator, this, "type", buffer, theTYPE, this.isSetTYPE()); theHref = this.getHref(); strategy.appendField(locator, this, "href", buffer, theHref, this.isSetHref()); theRole = this.getRole(); strategy.appendField(locator, this, "role", buffer, theRole, this.isSetRole()); theArcrole = this.getArcrole(); strategy.appendField(locator, this, "arcrole", buffer, theArcrole, this.isSetArcrole()); theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle, this.isSetTitle()); theShow = this.getShow(); strategy.appendField(locator, this, "show", buffer, theShow, this.isSetShow()); theActuate = this.getActuate(); strategy.appendField(locator, this, "actuate", buffer, theActuate, this.isSetActuate());
lhsPolygon = leftObject.getPolygon(); PolygonType rhsPolygon; rhsPolygon = rightObject.getPolygon(); target.setPolygon(((PolygonType) strategy.merge(LocatorUtils.property(leftLocator, "polygon", lhsPolygon), LocatorUtils.property(rightLocator, "polygon", rhsPolygon), lhsPolygon, rhsPolygon))); lhsRemoteSchema = leftObject.getRemoteSchema(); String rhsRemoteSchema; rhsRemoteSchema = rightObject.getRemoteSchema(); target.setRemoteSchema(((String) strategy.merge(LocatorUtils.property(leftLocator, "remoteSchema", lhsRemoteSchema), LocatorUtils.property(rightLocator, "remoteSchema", rhsRemoteSchema), lhsRemoteSchema, rhsRemoteSchema))); lhsType = leftObject.getType(); String rhsType; rhsType = rightObject.getType(); target.setType(((String) strategy.merge(LocatorUtils.property(leftLocator, "type", lhsType), LocatorUtils.property(rightLocator, "type", rhsType), lhsType, rhsType))); lhsHref = leftObject.getHref(); String rhsHref; rhsHref = rightObject.getHref(); target.setHref(((String) strategy.merge(LocatorUtils.property(leftLocator, "href", lhsHref), LocatorUtils.property(rightLocator, "href", rhsHref), lhsHref, rhsHref))); lhsRole = leftObject.getRole(); String rhsRole; rhsRole = rightObject.getRole(); target.setRole(((String) strategy.merge(LocatorUtils.property(leftLocator, "role", lhsRole), LocatorUtils.property(rightLocator, "role", rhsRole), lhsRole, rhsRole))); lhsArcrole = leftObject.getArcrole(); String rhsArcrole; rhsArcrole = rightObject.getArcrole(); target.setArcrole(((String) strategy.merge(LocatorUtils.property(leftLocator, "arcrole", lhsArcrole), LocatorUtils.property(rightLocator, "arcrole", rhsArcrole), lhsArcrole, rhsArcrole)));
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { thePolygon = this.getPolygon(); strategy.appendField(locator, this, "polygon", buffer, thePolygon); theRemoteSchema = this.getRemoteSchema(); strategy.appendField(locator, this, "remoteSchema", buffer, theRemoteSchema); theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); theHref = this.getHref(); strategy.appendField(locator, this, "href", buffer, theHref); theRole = this.getRole(); strategy.appendField(locator, this, "role", buffer, theRole); theArcrole = this.getArcrole(); strategy.appendField(locator, this, "arcrole", buffer, theArcrole); theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle); theShow = this.getShow(); strategy.appendField(locator, this, "show", buffer, theShow); theActuate = this.getActuate(); strategy.appendField(locator, this, "actuate", buffer, theActuate);
@Override protected MultiPolygonType createGeometry(double[][][][] coordinates) { final MultiPolygonType multiPolygonType = new MultiPolygonType(); for (int index = 0; index < coordinates.length; index++) { final double[][][] polygonCoordinates = coordinates[index]; PolygonType polygonType = polygonTypeConverter.createGeometry(polygonCoordinates); PolygonPropertyType polygonPropertyType = new PolygonPropertyType(); polygonPropertyType.setPolygon(polygonType); multiPolygonType.getPolygonMember().add(polygonPropertyType); } return multiPolygonType; }
public Polygon createGeometry(ObjectLocator locator, PolygonPropertyType polygonPropertyType) throws ConversionFailedException { if (polygonPropertyType.isSetPolygon()) { return createGeometry( locator.property( "polygon", polygonPropertyType.getPolygon()), polygonPropertyType.getPolygon()); //$NON-NLS-1$ } else { throw new ConversionFailedException(locator, "Expected [Polygon] element."); //$NON-NLS-1$ } }
@Override protected MultiPolygon doCreateGeometry(ObjectLocator locator, MultiPolygonType multiPolygonType) throws ConversionFailedException { final List<PolygonPropertyType> polygonMembers = multiPolygonType .getPolygonMember(); final List<Polygon> polygons = new ArrayList<Polygon>( polygonMembers.size()); for (int index = 0; index < polygonMembers.size(); index++) { final PolygonPropertyType polygonPropertyType = polygonMembers .get(index); final PolygonType polygonType = polygonPropertyType.getPolygon(); polygons.add(polygonConverter .createGeometry( locator.property("polygonMember", polygonMembers).item(index, polygonPropertyType).property("polygon", polygonType), //$NON-NLS-1$ //$NON-NLS-2$ polygonType)); } return getGeometryFactory().createMultiPolygon( polygons.toArray(new Polygon[polygons.size()])); }
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 boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
Boolean polygonShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetPolygon(), rightObject.isSetPolygon()); if (polygonShouldBeMergedAndSet == Boolean.TRUE) { PolygonType lhsPolygon; lhsPolygon = leftObject.getPolygon(); PolygonType rhsPolygon; rhsPolygon = rightObject.getPolygon(); PolygonType mergedPolygon = ((PolygonType) strategy.merge(LocatorUtils.property(leftLocator, "polygon", lhsPolygon), LocatorUtils.property(rightLocator, "polygon", rhsPolygon), lhsPolygon, rhsPolygon, leftObject.isSetPolygon(), rightObject.isSetPolygon())); target.setPolygon(mergedPolygon); } else { if (polygonShouldBeMergedAndSet == Boolean.FALSE) { Boolean remoteSchemaShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetRemoteSchema(), rightObject.isSetRemoteSchema()); if (remoteSchemaShouldBeMergedAndSet == Boolean.TRUE) { String lhsRemoteSchema; lhsRemoteSchema = leftObject.getRemoteSchema(); String rhsRemoteSchema; rhsRemoteSchema = rightObject.getRemoteSchema(); String mergedRemoteSchema = ((String) strategy.merge(LocatorUtils.property(leftLocator, "remoteSchema", lhsRemoteSchema), LocatorUtils.property(rightLocator, "remoteSchema", rhsRemoteSchema), lhsRemoteSchema, rhsRemoteSchema, leftObject.isSetRemoteSchema(), rightObject.isSetRemoteSchema())); target.setRemoteSchema(mergedRemoteSchema); } else { if (remoteSchemaShouldBeMergedAndSet == Boolean.FALSE) { Boolean typeShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetTYPE(), rightObject.isSetTYPE()); if (typeShouldBeMergedAndSet == Boolean.TRUE) { TypeType lhsTYPE; lhsTYPE = leftObject.getTYPE(); TypeType rhsTYPE; rhsTYPE = rightObject.getTYPE(); TypeType mergedTYPE = ((TypeType) strategy.merge(LocatorUtils.property(leftLocator, "type", lhsTYPE), LocatorUtils.property(rightLocator, "type", rhsTYPE), lhsTYPE, rhsTYPE, leftObject.isSetTYPE(), rightObject.isSetTYPE()));
thePolygon = this.getPolygon(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "polygon", thePolygon), currentHashCode, thePolygon, this.isSetPolygon()); theRemoteSchema = this.getRemoteSchema(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "remoteSchema", theRemoteSchema), currentHashCode, theRemoteSchema, this.isSetRemoteSchema()); theTYPE = this.getTYPE(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theTYPE), currentHashCode, theTYPE, this.isSetTYPE()); theHref = this.getHref(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "href", theHref), currentHashCode, theHref, this.isSetHref()); theRole = this.getRole(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "role", theRole), currentHashCode, theRole, this.isSetRole()); theArcrole = this.getArcrole(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "arcrole", theArcrole), currentHashCode, theArcrole, this.isSetArcrole()); theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle, this.isSetTitle()); theShow = this.getShow(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "show", theShow), currentHashCode, theShow, this.isSetShow()); theActuate = this.getActuate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "actuate", theActuate), currentHashCode, theActuate, this.isSetActuate());
lhsPolygon = this.getPolygon(); PolygonType rhsPolygon; rhsPolygon = that.getPolygon(); if (!strategy.equals(LocatorUtils.property(thisLocator, "polygon", lhsPolygon), LocatorUtils.property(thatLocator, "polygon", rhsPolygon), lhsPolygon, rhsPolygon)) { return false; lhsRemoteSchema = this.getRemoteSchema(); String rhsRemoteSchema; rhsRemoteSchema = that.getRemoteSchema(); if (!strategy.equals(LocatorUtils.property(thisLocator, "remoteSchema", lhsRemoteSchema), LocatorUtils.property(thatLocator, "remoteSchema", rhsRemoteSchema), lhsRemoteSchema, rhsRemoteSchema)) { return false; lhsType = this.getType(); String rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) { return false; lhsHref = this.getHref(); String rhsHref; rhsHref = that.getHref(); if (!strategy.equals(LocatorUtils.property(thisLocator, "href", lhsHref), LocatorUtils.property(thatLocator, "href", rhsHref), lhsHref, rhsHref)) { return false; lhsRole = this.getRole(); String rhsRole; rhsRole = that.getRole(); if (!strategy.equals(LocatorUtils.property(thisLocator, "role", lhsRole), LocatorUtils.property(thatLocator, "role", rhsRole), lhsRole, rhsRole)) { return false;
public Object clone() { return copyTo(createNewInstance()); }
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 boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }