2 * Generated Model Object
3 * source json-schema : dumpexport.json
4 * generated at : 2017-11-05T22:30:10.255929
6 #include "DumpExportPkgVersion.h"
9 DumpExportPkgVersion::DumpExportPkgVersion()
12 fPayloadLength
= NULL
;
18 fArchitectureCode
= NULL
;
24 DumpExportPkgVersion::~DumpExportPkgVersion()
30 if (fPayloadLength
!= NULL
) {
31 delete fPayloadLength
;
34 if (fDescription
!= NULL
) {
42 if (fSummary
!= NULL
) {
50 if (fPreRelease
!= NULL
) {
54 if (fArchitectureCode
!= NULL
) {
55 delete fArchitectureCode
;
62 if (fRevision
!= NULL
) {
69 DumpExportPkgVersion::Major()
76 DumpExportPkgVersion::SetMajor(BString
* value
)
83 DumpExportPkgVersion::SetMajorNull()
93 DumpExportPkgVersion::MajorIsNull()
95 return fMajor
== NULL
;
100 DumpExportPkgVersion::PayloadLength()
102 return *fPayloadLength
;
107 DumpExportPkgVersion::SetPayloadLength(int64 value
)
109 if (PayloadLengthIsNull())
110 fPayloadLength
= new int64
[1];
111 fPayloadLength
[0] = value
;
116 DumpExportPkgVersion::SetPayloadLengthNull()
118 if (!PayloadLengthIsNull()) {
119 delete fPayloadLength
;
120 fPayloadLength
= NULL
;
126 DumpExportPkgVersion::PayloadLengthIsNull()
128 return fPayloadLength
== NULL
;
133 DumpExportPkgVersion::Description()
140 DumpExportPkgVersion::SetDescription(BString
* value
)
142 fDescription
= value
;
147 DumpExportPkgVersion::SetDescriptionNull()
149 if (!DescriptionIsNull()) {
157 DumpExportPkgVersion::DescriptionIsNull()
159 return fDescription
== NULL
;
164 DumpExportPkgVersion::Title()
171 DumpExportPkgVersion::SetTitle(BString
* value
)
178 DumpExportPkgVersion::SetTitleNull()
180 if (!TitleIsNull()) {
188 DumpExportPkgVersion::TitleIsNull()
190 return fTitle
== NULL
;
195 DumpExportPkgVersion::Summary()
202 DumpExportPkgVersion::SetSummary(BString
* value
)
209 DumpExportPkgVersion::SetSummaryNull()
211 if (!SummaryIsNull()) {
219 DumpExportPkgVersion::SummaryIsNull()
221 return fSummary
== NULL
;
226 DumpExportPkgVersion::Micro()
233 DumpExportPkgVersion::SetMicro(BString
* value
)
240 DumpExportPkgVersion::SetMicroNull()
242 if (!MicroIsNull()) {
250 DumpExportPkgVersion::MicroIsNull()
252 return fMicro
== NULL
;
257 DumpExportPkgVersion::PreRelease()
264 DumpExportPkgVersion::SetPreRelease(BString
* value
)
271 DumpExportPkgVersion::SetPreReleaseNull()
273 if (!PreReleaseIsNull()) {
281 DumpExportPkgVersion::PreReleaseIsNull()
283 return fPreRelease
== NULL
;
288 DumpExportPkgVersion::ArchitectureCode()
290 return fArchitectureCode
;
295 DumpExportPkgVersion::SetArchitectureCode(BString
* value
)
297 fArchitectureCode
= value
;
302 DumpExportPkgVersion::SetArchitectureCodeNull()
304 if (!ArchitectureCodeIsNull()) {
305 delete fArchitectureCode
;
306 fArchitectureCode
= NULL
;
312 DumpExportPkgVersion::ArchitectureCodeIsNull()
314 return fArchitectureCode
== NULL
;
319 DumpExportPkgVersion::Minor()
326 DumpExportPkgVersion::SetMinor(BString
* value
)
333 DumpExportPkgVersion::SetMinorNull()
335 if (!MinorIsNull()) {
343 DumpExportPkgVersion::MinorIsNull()
345 return fMinor
== NULL
;
350 DumpExportPkgVersion::Revision()
357 DumpExportPkgVersion::SetRevision(int64 value
)
359 if (RevisionIsNull())
360 fRevision
= new int64
[1];
361 fRevision
[0] = value
;
366 DumpExportPkgVersion::SetRevisionNull()
368 if (!RevisionIsNull()) {
376 DumpExportPkgVersion::RevisionIsNull()
378 return fRevision
== NULL
;