core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/wizard/ImportExportData.java
equal
deleted
inserted
replaced
1 package com.nokia.carbide.internal.discovery.ui.wizard; |
|
2 |
|
3 import java.net.URI; |
|
4 import java.util.Collection; |
|
5 import java.util.HashSet; |
|
6 |
|
7 class ImportExportData { |
|
8 private boolean wantsVersions; |
|
9 private Collection<URI> uris; |
|
10 private Collection<FeatureInfo> featureInfos; |
|
11 |
|
12 public ImportExportData() { |
|
13 uris = new HashSet<URI>(); |
|
14 featureInfos = new HashSet<FeatureInfo>(); |
|
15 } |
|
16 |
|
17 public ImportExportData(boolean wantsVersions, Collection<URI> uris, Collection<FeatureInfo> featureInfos) { |
|
18 this.wantsVersions = wantsVersions; |
|
19 this.uris = uris; |
|
20 this.featureInfos = featureInfos; |
|
21 } |
|
22 |
|
23 public void addURI(URI uri) { |
|
24 uris.add(uri); |
|
25 } |
|
26 |
|
27 public Collection<URI> getURIs() { |
|
28 return uris; |
|
29 } |
|
30 |
|
31 public void addFeatureInfo(FeatureInfo info) { |
|
32 featureInfos.add(info); |
|
33 } |
|
34 |
|
35 public Collection<FeatureInfo> getFeatureInfos() { |
|
36 return featureInfos; |
|
37 } |
|
38 |
|
39 public void setWantsVersions(boolean wantsVersions) { |
|
40 this.wantsVersions = wantsVersions; |
|
41 } |
|
42 |
|
43 public boolean getWantsVersions() { |
|
44 return wantsVersions; |
|
45 } |
|
46 } |
|