Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Feature/use generic attribute to allow empty values (#50)
Browse files Browse the repository at this point in the history
* Refactor DeviceMeasurement model attributes

Simplified variable types in the DeviceMeasurement model. Instead of having separate attribute types, all attributes are generalized under 'Attribute'. This makes the code cleaner and more maintainable, removing the need for specific attribute types.

* Update version in pom.xml

Increased the version of the FIWARE integration layer project in pom.xml from 12.0.0 to 12.1.0. This version bump corresponds to the
  • Loading branch information
saschadoemer authored Mar 3, 2024
1 parent 07127f8 commit 5819176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.app.5gla</groupId>
<artifactId>fiware-integration-layer</artifactId>
<version>12.0.0</version>
<version>12.1.0</version>

<name>5gLa FIWARE integration layer</name>
<url>https://github.com/vitrum-connect/5gla-fiware-integration-layer</url>
Expand Down
12 changes: 5 additions & 7 deletions src/main/java/de/app/fivegla/fiware/model/DeviceMeasurement.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import de.app.fivegla.fiware.api.FiwareType;
import de.app.fivegla.fiware.model.api.Validatable;
import de.app.fivegla.fiware.model.internal.DateTimeAttribute;
import de.app.fivegla.fiware.model.internal.NumberAttribute;
import de.app.fivegla.fiware.model.internal.TextAttribute;
import de.app.fivegla.fiware.model.internal.Attribute;
import org.apache.commons.lang3.StringUtils;

/**
Expand All @@ -15,10 +13,10 @@
public record DeviceMeasurement(
String id,
String type,
TextAttribute name,
NumberAttribute controlledProperty,
DateTimeAttribute dateCreated,
TextAttribute externalDataReference,
Attribute name,
Attribute controlledProperty,
Attribute dateCreated,
Attribute externalDataReference,
double latitude,
double longitude
) implements Validatable {
Expand Down

0 comments on commit 5819176

Please sign in to comment.