Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit ffbc2d5

Browse files
authored
Merge pull request #17 from admin-shell-io/fix/repairCompilationErrors
Adding some properties which were not implemented to fix compilation errors
2 parents c0710df + 9274b55 commit ffbc2d5

2 files changed

Lines changed: 26 additions & 12 deletions

File tree

dataformat-json/src/test/java/io/adminshell/aas/v3/dataformat/json/CustomProperty.java

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@
1818
import java.util.List;
1919
import java.util.Objects;
2020

21-
import io.adminshell.aas.v3.model.Constraint;
22-
import io.adminshell.aas.v3.model.EmbeddedDataSpecification;
23-
import io.adminshell.aas.v3.model.LangString;
24-
import io.adminshell.aas.v3.model.ModelingKind;
25-
import io.adminshell.aas.v3.model.Property;
26-
import io.adminshell.aas.v3.model.Reference;
21+
import io.adminshell.aas.v3.model.*;
2722

2823
public class CustomProperty implements Property {
2924

@@ -49,6 +44,8 @@ public class CustomProperty implements Property {
4944

5045
protected String idShort;
5146

47+
protected List<Extension> extensions;
48+
5249
protected CustomProperty() {
5350
}
5451

@@ -188,4 +185,14 @@ final public Reference getSemanticId() {
188185
final public void setSemanticId(Reference semanticId) {
189186
this.semanticId = semanticId;
190187
}
188+
189+
@Override
190+
public List<Extension> getExtensions() {
191+
return extensions;
192+
}
193+
194+
@Override
195+
public void setExtensions(List<Extension> list) {
196+
this.extensions = list;
197+
}
191198
}

dataformat-xml/src/test/java/io/adminshell/aas/v3/dataformat/xml/CustomProperty.java

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@
1818
import java.util.List;
1919
import java.util.Objects;
2020

21-
import io.adminshell.aas.v3.model.Constraint;
22-
import io.adminshell.aas.v3.model.EmbeddedDataSpecification;
23-
import io.adminshell.aas.v3.model.LangString;
24-
import io.adminshell.aas.v3.model.ModelingKind;
25-
import io.adminshell.aas.v3.model.Property;
26-
import io.adminshell.aas.v3.model.Reference;
21+
import io.adminshell.aas.v3.model.*;
2722

2823
public class CustomProperty implements Property {
2924

@@ -49,6 +44,8 @@ public class CustomProperty implements Property {
4944

5045
protected String idShort;
5146

47+
protected List<Extension> extensions;
48+
5249
protected CustomProperty() {
5350
}
5451

@@ -188,4 +185,14 @@ final public Reference getSemanticId() {
188185
final public void setSemanticId(Reference semanticId) {
189186
this.semanticId = semanticId;
190187
}
188+
189+
@Override
190+
public List<Extension> getExtensions() {
191+
return extensions;
192+
}
193+
194+
@Override
195+
public void setExtensions(List<Extension> list) {
196+
this.extensions = list;
197+
}
191198
}

0 commit comments

Comments
 (0)