2 * Generated Model Object
3 * source json-schema : dumpexport.json
4 * generated at : 2017-11-11T13:59:22.553529
6 #include "DumpExportRepository.h"
9 DumpExportRepository::DumpExportRepository()
11 fInformationUrl
= NULL
;
13 fRepositorySources
= NULL
;
19 DumpExportRepository::~DumpExportRepository()
23 if (fInformationUrl
!= NULL
) {
24 delete fInformationUrl
;
31 if (fRepositorySources
!= NULL
) {
32 int32 count
= fRepositorySources
->CountItems();
33 for (i
= 0; i
< count
; i
++)
34 delete fRepositorySources
->ItemAt(i
);
35 delete fRepositorySources
;
42 if (fDescription
!= NULL
) {
49 DumpExportRepository::InformationUrl()
51 return fInformationUrl
;
56 DumpExportRepository::SetInformationUrl(BString
* value
)
58 fInformationUrl
= value
;
63 DumpExportRepository::SetInformationUrlNull()
65 if (!InformationUrlIsNull()) {
66 delete fInformationUrl
;
67 fInformationUrl
= NULL
;
73 DumpExportRepository::InformationUrlIsNull()
75 return fInformationUrl
== NULL
;
80 DumpExportRepository::Code()
87 DumpExportRepository::SetCode(BString
* value
)
94 DumpExportRepository::SetCodeNull()
104 DumpExportRepository::CodeIsNull()
106 return fCode
== NULL
;
111 DumpExportRepository::AddToRepositorySources(DumpExportRepositorySource
* value
)
113 if (fRepositorySources
== NULL
)
114 fRepositorySources
= new List
<DumpExportRepositorySource
*, true>();
115 fRepositorySources
->Add(value
);
120 DumpExportRepository::SetRepositorySources(List
<DumpExportRepositorySource
*, true>* value
)
122 fRepositorySources
= value
;
127 DumpExportRepository::CountRepositorySources()
129 if (fRepositorySources
== NULL
)
131 return fRepositorySources
->CountItems();
135 DumpExportRepositorySource
*
136 DumpExportRepository::RepositorySourcesItemAt(int32 index
)
138 return fRepositorySources
->ItemAt(index
);
143 DumpExportRepository::RepositorySourcesIsNull()
145 return fRepositorySources
== NULL
;
150 DumpExportRepository::Name()
157 DumpExportRepository::SetName(BString
* value
)
164 DumpExportRepository::SetNameNull()
174 DumpExportRepository::NameIsNull()
176 return fName
== NULL
;
181 DumpExportRepository::Description()
188 DumpExportRepository::SetDescription(BString
* value
)
190 fDescription
= value
;
195 DumpExportRepository::SetDescriptionNull()
197 if (!DescriptionIsNull()) {
205 DumpExportRepository::DescriptionIsNull()
207 return fDescription
== NULL
;