public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { List<DirectedEdgePropertyType> theDirectedEdge; theDirectedEdge = (this.isSetDirectedEdge()?this.getDirectedEdge():null); strategy.appendField(locator, this, "directedEdge", buffer, theDirectedEdge, this.isSetDirectedEdge()); } { PointPropertyType thePointProperty; thePointProperty = this.getPointProperty(); strategy.appendField(locator, this, "pointProperty", buffer, thePointProperty, this.isSetPointProperty()); } return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = super.hashCode(locator, strategy); { List<DirectedEdgePropertyType> theDirectedEdge; theDirectedEdge = (this.isSetDirectedEdge()?this.getDirectedEdge():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "directedEdge", theDirectedEdge), currentHashCode, theDirectedEdge, this.isSetDirectedEdge()); } { PointPropertyType thePointProperty; thePointProperty = this.getPointProperty(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pointProperty", thePointProperty), currentHashCode, thePointProperty, this.isSetPointProperty()); } return currentHashCode; }
lhsDirectedEdge = (this.isSetDirectedEdge()?this.getDirectedEdge():null); List<DirectedEdgePropertyType> rhsDirectedEdge; rhsDirectedEdge = (that.isSetDirectedEdge()?that.getDirectedEdge():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "directedEdge", lhsDirectedEdge), LocatorUtils.property(thatLocator, "directedEdge", rhsDirectedEdge), lhsDirectedEdge, rhsDirectedEdge, this.isSetDirectedEdge(), that.isSetDirectedEdge())) { return false;
final NodeType rightObject = ((NodeType) right); Boolean directedEdgeShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetDirectedEdge(), rightObject.isSetDirectedEdge()); if (directedEdgeShouldBeMergedAndSet == Boolean.TRUE) { List<DirectedEdgePropertyType> lhsDirectedEdge; lhsDirectedEdge = (leftObject.isSetDirectedEdge()?leftObject.getDirectedEdge():null); List<DirectedEdgePropertyType> rhsDirectedEdge; rhsDirectedEdge = (rightObject.isSetDirectedEdge()?rightObject.getDirectedEdge():null); List<DirectedEdgePropertyType> mergedDirectedEdge = ((List<DirectedEdgePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator, "directedEdge", lhsDirectedEdge), LocatorUtils.property(rightLocator, "directedEdge", rhsDirectedEdge), lhsDirectedEdge, rhsDirectedEdge, leftObject.isSetDirectedEdge(), rightObject.isSetDirectedEdge())); target.unsetDirectedEdge(); if (mergedDirectedEdge!= null) {
final NodeType copy = ((NodeType) draftCopy); Boolean directedEdgeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetDirectedEdge()); if (directedEdgeShouldBeCopiedAndSet == Boolean.TRUE) { List<DirectedEdgePropertyType> sourceDirectedEdge; sourceDirectedEdge = (this.isSetDirectedEdge()?this.getDirectedEdge():null); @SuppressWarnings("unchecked") List<DirectedEdgePropertyType> copyDirectedEdge = ((List<DirectedEdgePropertyType> ) strategy.copy(LocatorUtils.property(locator, "directedEdge", sourceDirectedEdge), sourceDirectedEdge, this.isSetDirectedEdge())); copy.unsetDirectedEdge(); if (copyDirectedEdge!= null) {
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); super.copyTo(locator, draftCopy, strategy); if (draftCopy instanceof NodeType) { final NodeType copy = ((NodeType) draftCopy); if (this.isSetDirectedEdge()) { List<DirectedEdgePropertyType> sourceDirectedEdge; sourceDirectedEdge = this.getDirectedEdge(); @SuppressWarnings("unchecked") List<DirectedEdgePropertyType> copyDirectedEdge = ((List<DirectedEdgePropertyType> ) strategy.copy(LocatorUtils.property(locator, "directedEdge", sourceDirectedEdge), sourceDirectedEdge)); copy.unsetDirectedEdge(); List<DirectedEdgePropertyType> uniqueDirectedEdgel = copy.getDirectedEdge(); uniqueDirectedEdgel.addAll(copyDirectedEdge); } else { copy.unsetDirectedEdge(); } if (this.isSetPointProperty()) { PointPropertyType sourcePointProperty; sourcePointProperty = this.getPointProperty(); PointPropertyType copyPointProperty = ((PointPropertyType) strategy.copy(LocatorUtils.property(locator, "pointProperty", sourcePointProperty), sourcePointProperty)); copy.setPointProperty(copyPointProperty); } else { copy.pointProperty = null; } } return draftCopy; }