/** * Create an instance of {@link NodeType } * */ public NodeType createNodeType() { return new NodeType(); }
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 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; }
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 void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { super.mergeFrom(leftLocator, rightLocator, left, right, strategy); if (right instanceof NodeType) { final NodeType target = this; final NodeType leftObject = ((NodeType) left); final NodeType rightObject = ((NodeType) right); { List<DirectedEdgePropertyType> lhsDirectedEdge; lhsDirectedEdge = leftObject.getDirectedEdge(); List<DirectedEdgePropertyType> rhsDirectedEdge; rhsDirectedEdge = rightObject.getDirectedEdge(); target.unsetDirectedEdge(); List<DirectedEdgePropertyType> uniqueDirectedEdgel = target.getDirectedEdge(); uniqueDirectedEdgel.addAll(((List<DirectedEdgePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator, "directedEdge", lhsDirectedEdge), LocatorUtils.property(rightLocator, "directedEdge", rhsDirectedEdge), lhsDirectedEdge, rhsDirectedEdge))); } { PointPropertyType lhsPointProperty; lhsPointProperty = leftObject.getPointProperty(); PointPropertyType rhsPointProperty; rhsPointProperty = rightObject.getPointProperty(); target.setPointProperty(((PointPropertyType) strategy.merge(LocatorUtils.property(leftLocator, "pointProperty", lhsPointProperty), LocatorUtils.property(rightLocator, "pointProperty", rhsPointProperty), lhsPointProperty, rhsPointProperty))); } } }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { List<DirectedEdgePropertyType> theDirectedEdge; theDirectedEdge = this.getDirectedEdge(); strategy.appendField(locator, this, "directedEdge", buffer, theDirectedEdge); } { PointPropertyType thePointProperty; thePointProperty = this.getPointProperty(); strategy.appendField(locator, this, "pointProperty", buffer, thePointProperty); } return buffer; }
public void setDirectedEdge(List<DirectedEdgePropertyType> value) { List<DirectedEdgePropertyType> draftl = this.getDirectedEdge(); 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 ToStringStrategy 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); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); super.copyTo(locator, draftCopy, strategy); if (draftCopy instanceof NodeType) { 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) { List<DirectedEdgePropertyType> uniqueDirectedEdgel = copy.getDirectedEdge(); uniqueDirectedEdgel.addAll(copyDirectedEdge); copy.unsetDirectedEdge(); Boolean pointPropertyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, this.isSetPointProperty()); if (pointPropertyShouldBeCopiedAndSet == Boolean.TRUE) { PointPropertyType sourcePointProperty; sourcePointProperty = this.getPointProperty(); PointPropertyType copyPointProperty = ((PointPropertyType) strategy.copy(LocatorUtils.property(locator, "pointProperty", sourcePointProperty), sourcePointProperty, this.isSetPointProperty())); copy.setPointProperty(copyPointProperty); } else { if (pointPropertyShouldBeCopiedAndSet == Boolean.FALSE) {
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; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { List<DirectedEdgePropertyType> theDirectedEdge; theDirectedEdge = this.getDirectedEdge(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "directedEdge", theDirectedEdge), currentHashCode, theDirectedEdge); } { PointPropertyType thePointProperty; thePointProperty = this.getPointProperty(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pointProperty", thePointProperty), currentHashCode, thePointProperty); } return currentHashCode; }
public NodeType withDirectedEdge(Collection<DirectedEdgePropertyType> values) { if (values!= null) { getDirectedEdge().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 ToStringStrategy2 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); }