-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: refactor code by changing the DownloadProperties.URLProperties, …
…#TASK-5775, #TASK-5564
- Loading branch information
Showing
16 changed files
with
387 additions
and
1,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 0 additions & 117 deletions
117
cellbase-core/src/main/java/org/opencb/cellbase/core/models/DataReleaseSource.java
This file was deleted.
Oops, something went wrong.
98 changes: 98 additions & 0 deletions
98
cellbase-core/src/main/java/org/opencb/cellbase/core/models/DataSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/* | ||
* Copyright 2015-2020 OpenCB | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.opencb.cellbase.core.models; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class DataSource { | ||
|
||
private String name; | ||
private String category; | ||
private String version; | ||
private String downloadDate; | ||
private List<String> urls; | ||
|
||
public DataSource() { | ||
this.urls = new ArrayList<>(); | ||
} | ||
|
||
public DataSource(String name, String category, String version, String downloadDate, List<String> urls) { | ||
this.name = name; | ||
this.category = category; | ||
this.version = version; | ||
this.downloadDate = downloadDate; | ||
this.urls = urls; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
final StringBuilder sb = new StringBuilder("DataSourceDescr{"); | ||
sb.append("name='").append(name).append('\''); | ||
sb.append(", category='").append(category).append('\''); | ||
sb.append(", version='").append(version).append('\''); | ||
sb.append(", downloadDate='").append(downloadDate).append('\''); | ||
sb.append(", urls=").append(urls); | ||
sb.append('}'); | ||
return sb.toString(); | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public DataSource setName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
public String getCategory() { | ||
return category; | ||
} | ||
|
||
public DataSource setCategory(String category) { | ||
this.category = category; | ||
return this; | ||
} | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public DataSource setVersion(String version) { | ||
this.version = version; | ||
return this; | ||
} | ||
|
||
public String getDownloadDate() { | ||
return downloadDate; | ||
} | ||
|
||
public DataSource setDownloadDate(String downloadedDate) { | ||
this.downloadDate = downloadedDate; | ||
return this; | ||
} | ||
|
||
public List<String> getUrls() { | ||
return urls; | ||
} | ||
|
||
public DataSource setUrls(List<String> urls) { | ||
this.urls = urls; | ||
return this; | ||
} | ||
} |
Oops, something went wrong.