1 package de.dlr.shepard.neo4Core.io;
2
3 import de.dlr.shepard.neo4Core.entities.URIReference;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import jakarta.validation.constraints.NotBlank;
6 import lombok.Data;
7 import lombok.EqualsAndHashCode;
8 import lombok.NoArgsConstructor;
9
10 @Data
11 @EqualsAndHashCode(callSuper = true)
12 @NoArgsConstructor
13 @Schema(name = "URIReference")
14 public class URIReferenceIO extends BasicReferenceIO {
15
16 @NotBlank
17 private String uri;
18
19 public URIReferenceIO(URIReference ref) {
20 super(ref);
21 this.uri = ref.getUri();
22 }
23
24 }