Skip to content

Commit 2f53000

Browse files
committed
Update JAVA-Classes - BO4E v202401.2.1
1 parent d0f8180 commit 2f53000

92 files changed

Lines changed: 18409 additions & 4318 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bo4e/ZusatzAttribut.java

Lines changed: 60 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,69 @@
1616
* <https://json-schema.app/view/%23?url=https://raw.githubusercontent.com/BO4E/BO4E-Schemas/v202401.2.1/src/bo4e_schemas/ZusatzAttribut.json>`_
1717
*/
1818
public class ZusatzAttribut {
19-
private String name;
20-
private Object wert;
21-
2219
/**
2320
* Bezeichnung der externen Referenz (z.B. "microservice xyz" oder "SAP CRM GP-Nummer")
2421
*/
25-
public String getName() { return name; }
26-
public void setName(String value) { this.name = value; }
27-
22+
private String name;
2823
/**
2924
* Bezeichnung der externen Referenz (z.B. "microservice xyz" oder "SAP CRM GP-Nummer")
3025
*/
31-
public Object getWert() { return wert; }
32-
public void setWert(Object value) { this.wert = value; }
33-
}
26+
private Object wert;
27+
28+
public ZusatzAttribut() {
29+
}
30+
31+
private ZusatzAttribut(ZusatzAttributBuilder builder) {
32+
this.name = builder.name;
33+
this.wert = builder.wert;
34+
}
35+
36+
public String getName() {
37+
return name;
38+
}
39+
40+
public void setName(String name) {
41+
this.name = name;
42+
}
43+
44+
public Object getWert() {
45+
return wert;
46+
}
47+
48+
public void setWert(Object wert) {
49+
this.wert = wert;
50+
}
51+
52+
public static class ZusatzAttributBuilder {
53+
/**
54+
* Bezeichnung der externen Referenz (z.B. "microservice xyz" oder "SAP CRM GP-Nummer")
55+
*/
56+
private String name;
57+
/**
58+
* Bezeichnung der externen Referenz (z.B. "microservice xyz" oder "SAP CRM GP-Nummer")
59+
*/
60+
private Object wert;
61+
62+
public String getName() {
63+
return name;
64+
}
65+
66+
public ZusatzAttributBuilder setName(String name) {
67+
this.name = name;
68+
return this;
69+
}
70+
71+
public Object getWert() {
72+
return wert;
73+
}
74+
75+
public ZusatzAttributBuilder setWert(Object wert) {
76+
this.wert = wert;
77+
return this;
78+
}
79+
80+
public ZusatzAttribut build() {
81+
return new ZusatzAttribut(this);
82+
}
83+
}
84+
}

0 commit comments

Comments
 (0)