1
2
3
4
5
6 package gov.nist.secauto.metaschema.core.model.constraint;
7
8 import java.util.List;
9
10 import edu.umd.cs.findbugs.annotations.NonNull;
11
12
13
14
15
16 public interface IModelConstrained extends IValueConstrained {
17
18
19
20
21
22 @NonNull
23 List<? extends IIndexConstraint> getIndexConstraints();
24
25
26
27
28
29
30 @NonNull
31 List<? extends IUniqueConstraint> getUniqueConstraints();
32
33
34
35
36
37
38 @NonNull
39 List<? extends ICardinalityConstraint> getHasCardinalityConstraints();
40
41
42
43
44
45
46
47 void addConstraint(@NonNull IIndexConstraint constraint);
48
49
50
51
52
53
54
55 void addConstraint(@NonNull IUniqueConstraint constraint);
56
57
58
59
60
61
62
63 void addConstraint(@NonNull ICardinalityConstraint constraint);
64 }