public Object clone() { return copyTo(createNewInstance()); }
public Object clone() { return copyTo(createNewInstance()); }
public Object clone() { return copyTo(createNewInstance()); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof SecurityRoleKey) { final SecurityRoleKey copy = ((SecurityRoleKey) draftCopy); { Boolean securityRoleNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.securityRoleName!= null)); if (securityRoleNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceSecurityRoleName; sourceSecurityRoleName = this.getSecurityRoleName(); String copySecurityRoleName = ((String) strategy.copy(LocatorUtils.property(locator, "securityRoleName", sourceSecurityRoleName), sourceSecurityRoleName, (this.securityRoleName!= null))); copy.setSecurityRoleName(copySecurityRoleName); } else { if (securityRoleNameShouldBeCopiedAndSet == Boolean.FALSE) { copy.securityRoleName = null; } } } } return draftCopy; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof SecurityRoleKey) { final SecurityRoleKey copy = ((SecurityRoleKey) draftCopy); { Boolean securityRoleNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.securityRoleName!= null)); if (securityRoleNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceSecurityRoleName; sourceSecurityRoleName = this.getSecurityRoleName(); String copySecurityRoleName = ((String) strategy.copy(LocatorUtils.property(locator, "securityRoleName", sourceSecurityRoleName), sourceSecurityRoleName, (this.securityRoleName!= null))); copy.setSecurityRoleName(copySecurityRoleName); } else { if (securityRoleNameShouldBeCopiedAndSet == Boolean.FALSE) { copy.securityRoleName = null; } } } } return draftCopy; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof SecurityRoleKey) { final SecurityRoleKey copy = ((SecurityRoleKey) draftCopy); { Boolean securityRoleNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.securityRoleName!= null)); if (securityRoleNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceSecurityRoleName; sourceSecurityRoleName = this.getSecurityRoleName(); String copySecurityRoleName = ((String) strategy.copy(LocatorUtils.property(locator, "securityRoleName", sourceSecurityRoleName), sourceSecurityRoleName, (this.securityRoleName!= null))); copy.setSecurityRoleName(copySecurityRoleName); } else { if (securityRoleNameShouldBeCopiedAndSet == Boolean.FALSE) { copy.securityRoleName = null; } } } } return draftCopy; }