001package co.codewizards.cloudstore.core.dto; 002 003import java.util.ArrayList; 004import java.util.List; 005 006import javax.xml.bind.annotation.XmlRootElement; 007 008@XmlRootElement 009public class ChangeSetDto { 010 private RepositoryDto repositoryDto; 011 private List<ModificationDto> modificationDtos; 012 private List<RepoFileDto> repoFileDtos; 013 private ConfigPropSetDto parentConfigPropSetDto; 014 015 public RepositoryDto getRepositoryDto() { 016 return repositoryDto; 017 } 018 public void setRepositoryDto(RepositoryDto repositoryDto) { 019 this.repositoryDto = repositoryDto; 020 } 021 022 public List<ModificationDto> getModificationDtos() { 023 if (modificationDtos == null) 024 modificationDtos = new ArrayList<ModificationDto>(); 025 026 return modificationDtos; 027 } 028 public void setModificationDtos(List<ModificationDto> modificationDtos) { 029 this.modificationDtos = modificationDtos; 030 } 031 032 public List<RepoFileDto> getRepoFileDtos() { 033 if (repoFileDtos == null) 034 repoFileDtos = new ArrayList<RepoFileDto>(); 035 036 return repoFileDtos; 037 } 038 public void setRepoFileDtos(List<RepoFileDto> repoFileDtos) { 039 this.repoFileDtos = repoFileDtos; 040 } 041 042 public ConfigPropSetDto getParentConfigPropSetDto() { 043 return parentConfigPropSetDto; 044 } 045 public void setParentConfigPropSetDto(ConfigPropSetDto configPropSetDto) { 046 this.parentConfigPropSetDto = configPropSetDto; 047 } 048 049 @Override 050 public String toString() { 051 return getClass().getSimpleName() + '[' + toString_getProperties() + ']'; 052 } 053 054 protected String toString_getProperties() { 055 return "repositoryDto=" + repositoryDto 056 + ", repoFileDtos=" + repoFileDtos 057 + ", modificationDtos=" + modificationDtos 058 + ", parentConfigPropSetDto=" + parentConfigPropSetDto; 059 } 060}