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 SubPremiseType.SubPremiseLocation marshalSubPremiseLocation(SubPremiseLocation src) { SubPremiseType.SubPremiseLocation dest = xal.createSubPremiseTypeSubPremiseLocation(); if (src.isSetContent()) dest.setContent(src.getContent()); if (src.isSetCode()) dest.setCode(src.getCode()); return dest; }