public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof SubPremiseType.SubPremiseLocation)) { return false; } if (this == object) { return true; } final SubPremiseType.SubPremiseLocation that = ((SubPremiseType.SubPremiseLocation) object); { String lhsContent; lhsContent = this.getContent(); String rhsContent; rhsContent = that.getContent(); if (!strategy.equals(LocatorUtils.property(thisLocator, "content", lhsContent), LocatorUtils.property(thatLocator, "content", rhsContent), lhsContent, rhsContent)) { return false; } } { String lhsCode; lhsCode = this.getCode(); String rhsCode; rhsCode = that.getCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "code", lhsCode), LocatorUtils.property(thatLocator, "code", rhsCode), lhsCode, rhsCode)) { return false; } } return true; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof SubPremiseType.SubPremiseLocation) { final SubPremiseType.SubPremiseLocation copy = ((SubPremiseType.SubPremiseLocation) draftCopy); if (this.content!= null) { String sourceContent; sourceContent = this.getContent(); String copyContent = ((String) strategy.copy(LocatorUtils.property(locator, "content", sourceContent), sourceContent)); copy.setContent(copyContent); } else { copy.content = null; } if (this.code!= null) { String sourceCode; sourceCode = this.getCode(); String copyCode = ((String) strategy.copy(LocatorUtils.property(locator, "code", sourceCode), sourceCode)); copy.setCode(copyCode); } else { copy.code = null; } } return draftCopy; }
public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { if (right instanceof SubPremiseType.SubPremiseLocation) { final SubPremiseType.SubPremiseLocation target = this; final SubPremiseType.SubPremiseLocation leftObject = ((SubPremiseType.SubPremiseLocation) left); final SubPremiseType.SubPremiseLocation rightObject = ((SubPremiseType.SubPremiseLocation) right); { String lhsContent; lhsContent = leftObject.getContent(); String rhsContent; rhsContent = rightObject.getContent(); target.setContent(((String) strategy.merge(LocatorUtils.property(leftLocator, "content", lhsContent), LocatorUtils.property(rightLocator, "content", rhsContent), lhsContent, rhsContent))); } { String lhsCode; lhsCode = leftObject.getCode(); String rhsCode; rhsCode = rightObject.getCode(); target.setCode(((String) strategy.merge(LocatorUtils.property(leftLocator, "code", lhsCode), LocatorUtils.property(rightLocator, "code", rhsCode), lhsCode, rhsCode))); } } }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theContent; theContent = this.getContent(); strategy.appendField(locator, this, "content", buffer, theContent); } { String theCode; theCode = this.getCode(); strategy.appendField(locator, this, "code", buffer, theCode); } return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theContent; theContent = this.getContent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "content", theContent), currentHashCode, theContent); } { String theCode; theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode); } return currentHashCode; }
public SubPremiseLocation unmarshalSubPremiseLocation(SubPremiseType.SubPremiseLocation src) { SubPremiseLocation dest = new SubPremiseLocation(); if (src.isSetContent()) dest.setContent(src.getContent()); if (src.isSetCode()) dest.setCode(src.getCode()); return dest; }