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