1   /*
2    * SPDX-FileCopyrightText: none
3    * SPDX-License-Identifier: CC0-1.0
4    */
5   
6   package gov.nist.secauto.metaschema.core.model.xml;
7   
8   import gov.nist.secauto.metaschema.core.MetaschemaConstants;
9   import gov.nist.secauto.metaschema.core.qname.IEnhancedQName;
10  
11  import edu.umd.cs.findbugs.annotations.NonNull;
12  
13  /**
14   * Provides commonly used XML constants related to an XML-based Metaschema
15   * module.
16   */
17  // FIXME: integrate these into the model interfaces or generalize these outside
18  // of XML
19  @SuppressWarnings("PMD.DataClass")
20  public final class XmlModuleConstants {
21    @NonNull
22    public static final IEnhancedQName ASSEMBLY_QNAME
23        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "assembly");
24    @NonNull
25    public static final IEnhancedQName DEFINE_ASSEMBLY_QNAME
26        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "define-assembly");
27    @NonNull
28    public static final IEnhancedQName FIELD_QNAME = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "field");
29    @NonNull
30    public static final IEnhancedQName DEFINE_FIELD_QNAME
31        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "define-field");
32    @NonNull
33    public static final IEnhancedQName FLAG_QNAME = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "flag");
34    @NonNull
35    public static final IEnhancedQName DEFINE_FLAG_QNAME
36        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "define-flag");
37    @NonNull
38    public static final IEnhancedQName CHOICE_QNAME
39        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "choice");
40    @NonNull
41    public static final IEnhancedQName CHOICE_GROUP_QNAME
42        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "choice-group");
43    @NonNull
44    public static final IEnhancedQName MODEL_QNAME = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "model");
45  
46    @NonNull
47    public static final IEnhancedQName ALLOWED_VALUES_CONSTRAINT_QNAME
48        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "allowed-values");
49  
50    @NonNull
51    public static final IEnhancedQName INDEX_HAS_KEY_CONSTRAINT_QNAME
52        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "index-has-key");
53  
54    @NonNull
55    public static final IEnhancedQName MATCHES_CONSTRAINT_QNAME
56        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "matches");
57  
58    @NonNull
59    public static final IEnhancedQName EXPECT_CONSTRAINT_QNAME
60        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "expect");
61  
62    @NonNull
63    public static final IEnhancedQName INDEX_CONSTRAINT_QNAME
64        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "index");
65  
66    @NonNull
67    public static final IEnhancedQName IS_UNIQUE_CONSTRAINT_QNAME
68        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "is-unique");
69  
70    @NonNull
71    public static final IEnhancedQName HAS_CARDINALITY_CONSTRAINT_QNAME
72        = IEnhancedQName.of(MetaschemaConstants.METASCHEMA_NAMESPACE, "has-cardinality");
73  
74    private XmlModuleConstants() {
75      // disable construction
76    }
77  }