1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.logging.log4j.catalog.api;
18
19 import java.io.Serializable;
20
21 import com.fasterxml.jackson.annotation.JsonIgnore;
22 import org.apache.logging.log4j.catalog.api.ConstraintType;
23
24
25
26
27 public class Constraint implements Serializable {
28
29 private static final long serialVersionUID = -6880181600556259104L;
30
31 @JsonIgnore
32 private Long id;
33
34
35
36
37 private ConstraintType constraintType;
38
39
40
41
42 private String value;
43
44 public Long getId() {
45 return id;
46 }
47
48 public void setId(Long id) {
49 this.id = id;
50 }
51
52 public ConstraintType getConstraintType() {
53 return constraintType;
54 }
55
56 public Constraint setConstraintType(ConstraintType constraintType) {
57 this.constraintType = constraintType;
58 return this;
59 }
60
61 public String getValue() {
62 return value;
63 }
64
65 public Constraint setValue(String value) {
66 this.value = value;
67 return this;
68 }
69 }