1
2
3
4
5
6 package gov.nist.secauto.metaschema.schemagen.json.impl;
7
8 import gov.nist.secauto.metaschema.core.model.IFlagInstance;
9 import gov.nist.secauto.metaschema.core.qname.IEnhancedQName;
10
11 import java.util.List;
12
13 import edu.umd.cs.findbugs.annotations.NonNull;
14 import edu.umd.cs.findbugs.annotations.Nullable;
15
16
17
18
19
20 public interface IJsonSchemaModelDefinition extends IJsonSchemaDefinition {
21
22
23
24
25
26 @Nullable
27 default IEnhancedQName getJsonKeyFlagName() {
28 IFlagInstance jsonKey = getJsonKeyFlag();
29 return jsonKey == null ? null : jsonKey.getQName();
30 }
31
32
33
34
35
36
37 @Nullable
38 IFlagInstance getJsonKeyFlag();
39
40
41
42
43
44
45
46
47 @NonNull
48 List<IJsonSchemaPropertyFlag> getFlagProperties();
49 }