Skip to content

Commit eb1ff77

Browse files
committed
Initial Changes
Signed-off-by: Alex Alzate <[email protected]>
1 parent 7fa14d2 commit eb1ff77

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

src/main/java/org/cyclonedx/model/Component.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ public String getScopeName() {
143143
private String mimeType;
144144
@VersionFilter(Version.VERSION_12)
145145
private OrganizationalEntity supplier;
146+
@Deprecated
146147
@VersionFilter(Version.VERSION_12)
147148
private String author;
148149
@VersionFilter(Version.VERSION_11)
@@ -198,6 +199,14 @@ public String getScopeName() {
198199
@JsonProperty("tags")
199200
private Tags tags;
200201

202+
@VersionFilter(Version.VERSION_16)
203+
@JsonProperty("authors")
204+
private List<OrganizationalContact> authors;
205+
206+
@VersionFilter(Version.VERSION_16)
207+
@JsonProperty("manufacturer")
208+
private OrganizationalEntity manufacturer;
209+
201210
@JsonOnly
202211
@VersionFilter(Version.VERSION_14)
203212
private Signature signature;
@@ -498,6 +507,30 @@ public void setProvides(final List<String> provides) {
498507
this.provides = provides;
499508
}
500509

510+
public Tags getTags() {
511+
return tags;
512+
}
513+
514+
public void setTags(final Tags tags) {
515+
this.tags = tags;
516+
}
517+
518+
public List<OrganizationalContact> getAuthors() {
519+
return authors;
520+
}
521+
522+
public void setAuthors(final List<OrganizationalContact> authors) {
523+
this.authors = authors;
524+
}
525+
526+
public OrganizationalEntity getManufacturer() {
527+
return manufacturer;
528+
}
529+
530+
public void setManufacturer(final OrganizationalEntity manufacturer) {
531+
this.manufacturer = manufacturer;
532+
}
533+
501534
@Override
502535
public int hashCode() {
503536
return Objects.hash(author, publisher, group, name, version, description, scope, hashes, license, copyright,

src/main/java/org/cyclonedx/model/Metadata.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ public class Metadata
7373
@VersionFilter(Version.VERSION_12)
7474
private Component component;
7575

76+
@VersionFilter(Version.VERSION_16)
77+
@JsonProperty("manufacturer")
78+
private OrganizationalEntity manufacturer;
79+
80+
@Deprecated
7681
@VersionFilter(Version.VERSION_12)
7782
private OrganizationalEntity manufacture;
7883

@@ -197,6 +202,14 @@ public void setToolChoice(final ToolInformation toolInformation) {
197202
this.toolInformation = toolInformation;
198203
}
199204

205+
public OrganizationalEntity getManufacturer() {
206+
return manufacturer;
207+
}
208+
209+
public void setManufacturer(final OrganizationalEntity manufacturer) {
210+
this.manufacturer = manufacturer;
211+
}
212+
200213
@Override
201214
public boolean equals(Object o) {
202215
if (this == o) return true;

0 commit comments

Comments
 (0)