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 S3KeyPrefixInformation) { final S3KeyPrefixInformation copy = ((S3KeyPrefixInformation) draftCopy); { Boolean s3KeyPrefixShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.s3KeyPrefix!= null)); if (s3KeyPrefixShouldBeCopiedAndSet == Boolean.TRUE) { String sourceS3KeyPrefix; sourceS3KeyPrefix = this.getS3KeyPrefix(); String copyS3KeyPrefix = ((String) strategy.copy(LocatorUtils.property(locator, "s3KeyPrefix", sourceS3KeyPrefix), sourceS3KeyPrefix, (this.s3KeyPrefix!= null))); copy.setS3KeyPrefix(copyS3KeyPrefix); } else { if (s3KeyPrefixShouldBeCopiedAndSet == Boolean.FALSE) { copy.s3KeyPrefix = null; } } } } return draftCopy; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof S3KeyPrefixInformation) { final S3KeyPrefixInformation copy = ((S3KeyPrefixInformation) draftCopy); { Boolean s3KeyPrefixShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.s3KeyPrefix!= null)); if (s3KeyPrefixShouldBeCopiedAndSet == Boolean.TRUE) { String sourceS3KeyPrefix; sourceS3KeyPrefix = this.getS3KeyPrefix(); String copyS3KeyPrefix = ((String) strategy.copy(LocatorUtils.property(locator, "s3KeyPrefix", sourceS3KeyPrefix), sourceS3KeyPrefix, (this.s3KeyPrefix!= null))); copy.setS3KeyPrefix(copyS3KeyPrefix); } else { if (s3KeyPrefixShouldBeCopiedAndSet == Boolean.FALSE) { copy.s3KeyPrefix = null; } } } } return draftCopy; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof S3KeyPrefixInformation) { final S3KeyPrefixInformation copy = ((S3KeyPrefixInformation) draftCopy); { Boolean s3KeyPrefixShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.s3KeyPrefix!= null)); if (s3KeyPrefixShouldBeCopiedAndSet == Boolean.TRUE) { String sourceS3KeyPrefix; sourceS3KeyPrefix = this.getS3KeyPrefix(); String copyS3KeyPrefix = ((String) strategy.copy(LocatorUtils.property(locator, "s3KeyPrefix", sourceS3KeyPrefix), sourceS3KeyPrefix, (this.s3KeyPrefix!= null))); copy.setS3KeyPrefix(copyS3KeyPrefix); } else { if (s3KeyPrefixShouldBeCopiedAndSet == Boolean.FALSE) { copy.s3KeyPrefix = null; } } } } return draftCopy; }