diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1dcff5e51..56c836a97 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,3 +13,9 @@ updates: schedule: interval: "daily" target-branch: "develop" + # Maintain dependencies for Docker + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "daily" + target-branch: "develop" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ba337023..a761169d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,8 +38,8 @@ env: JAVA_VERSION_FILE: .java-version # Post Maven artifacts to the artifact repo if the branch is 'develop' or 'release/*'. This avoids publishing artifacts for pull requests COMMIT_MAVEN_ARTIFACTS: ${{ (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release/')) && github.repository_owner == 'metaschema-framework' }} - # Upload CodeQL results if the branch is 'develop' or 'release/*' or a pull request targeting these branches. - UPLOAD_CODEQL: ${{ ((github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release/')) || (github.event_name == 'pull_request' && (github.base_ref == 'refs/heads/develop' || startsWith(github.base_ref, 'refs/heads/release/')))) && 'always' || 'never' }} + # Upload security scan SARIF results if the branch is 'develop' or 'release/*' or a pull request targeting these branches. + UPLOAD_SCAN_SARIF: ${{ (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release/')) || (github.event_name == 'pull_request' && (github.base_ref == 'develop' || startsWith(github.base_ref, 'release/'))) }} jobs: build-code: name: Code @@ -104,7 +104,86 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 with: - upload: ${{ env.UPLOAD_CODEQL }} + upload: 'never' + output: codeql-results + - name: CodeQL Summary + run: | + echo "## CodeQL Security Scan Results" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + if [ -d "codeql-results" ]; then + for sarif in codeql-results/*.sarif; do + if [ -f "$sarif" ]; then + FILENAME=$(basename "$sarif" .sarif) + RESULTS=$(jq -r '.runs[0].results | length' "$sarif" 2>/dev/null || echo "0") + # Count rules from driver and all extensions + DRIVER_RULES=$(jq -r '.runs[0].tool.driver.rules // [] | length' "$sarif" 2>/dev/null || echo "0") + EXT_RULES=$(jq -r '[.runs[0].tool.extensions[]?.rules // [] | length] | add // 0' "$sarif" 2>/dev/null || echo "0") + RULES=$((DRIVER_RULES + EXT_RULES)) + echo "**Language:** $FILENAME" >> $GITHUB_STEP_SUMMARY + echo "- Results found: $RESULTS" >> $GITHUB_STEP_SUMMARY + echo "- Rules checked: $RULES" >> $GITHUB_STEP_SUMMARY + fi + done + else + echo "No CodeQL results directory found." >> $GITHUB_STEP_SUMMARY + fi + echo "" >> $GITHUB_STEP_SUMMARY + if [ "${{ env.UPLOAD_SCAN_SARIF }}" == "true" ]; then + echo ":white_check_mark: Results uploaded to GitHub Security tab" >> $GITHUB_STEP_SUMMARY + else + echo ":information_source: Results not uploaded (branch/PR not targeting develop or release)" >> $GITHUB_STEP_SUMMARY + fi + # ------------------------- + # Trivy Security Scan + # ------------------------- + - name: Run Trivy vulnerability scanner + uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 + with: + scan-type: 'fs' + scan-ref: '.' + scanners: 'vuln' + format: 'sarif' + output: 'trivy-results.sarif' + severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN' + # Exclude submodule (has its own security scanning) and Maven plugin IT target dirs + skip-dirs: 'core/metaschema,metaschema-maven-plugin/target' + - name: Trivy Summary + run: | + echo "## Trivy Security Scan Results" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + if [ -f "trivy-results.sarif" ]; then + TOTAL=$(jq -r '.runs[0].results | length' trivy-results.sarif 2>/dev/null || echo "0") + # Trivy SARIF level mapping: error=CRITICAL, warning=HIGH, note=MEDIUM/LOW + CRITICAL=$(jq -r '[.runs[0].results[] | select(.level == "error")] | length' trivy-results.sarif 2>/dev/null || echo "0") + HIGH=$(jq -r '[.runs[0].results[] | select(.level == "warning")] | length' trivy-results.sarif 2>/dev/null || echo "0") + MEDIUM_LOW=$(jq -r '[.runs[0].results[] | select(.level == "note")] | length' trivy-results.sarif 2>/dev/null || echo "0") + echo "| Severity | Count |" >> $GITHUB_STEP_SUMMARY + echo "|----------|-------|" >> $GITHUB_STEP_SUMMARY + echo "| :red_circle: Critical | $CRITICAL |" >> $GITHUB_STEP_SUMMARY + echo "| :orange_circle: High | $HIGH |" >> $GITHUB_STEP_SUMMARY + echo "| :yellow_circle: Medium/Low | $MEDIUM_LOW |" >> $GITHUB_STEP_SUMMARY + echo "| **Total** | **$TOTAL** |" >> $GITHUB_STEP_SUMMARY + else + echo "No Trivy results file found." >> $GITHUB_STEP_SUMMARY + fi + echo "" >> $GITHUB_STEP_SUMMARY + if [ "${{ env.UPLOAD_SCAN_SARIF }}" == "true" ]; then + echo ":white_check_mark: Results uploaded to GitHub Security tab" >> $GITHUB_STEP_SUMMARY + else + echo ":information_source: Results not uploaded (branch/PR not targeting develop or release)" >> $GITHUB_STEP_SUMMARY + fi + - name: Upload CodeQL scan results to GitHub Security tab + if: env.UPLOAD_SCAN_SARIF == 'true' + uses: github/codeql-action/upload-sarif@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 + with: + sarif_file: codeql-results/java.sarif + category: 'codeql' + - name: Upload Trivy scan results to GitHub Security tab + if: env.UPLOAD_SCAN_SARIF == 'true' + uses: github/codeql-action/upload-sarif@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 + with: + sarif_file: 'trivy-results.sarif' + category: 'trivy' - name: Upload build zip archive uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f with: @@ -175,6 +254,29 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} continue-on-error: true + - name: Link Checker Summary + if: always() + run: | + echo "
" >> $GITHUB_STEP_SUMMARY + echo "

Link Checker Results

" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + if [ -f "html-link-report.md" ]; then + # Extract summary stats from the report + ERRORS=$(grep -c "^\[ERR\]" html-link-report.md 2>/dev/null || echo "0") + if [ "$ERRORS" -gt 0 ]; then + echo ":x: **Found $ERRORS broken link(s)**" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY + grep "^\[ERR\]" html-link-report.md >> $GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY + else + echo ":white_check_mark: **All links valid**" >> $GITHUB_STEP_SUMMARY + fi + else + echo ":warning: No link check report found." >> $GITHUB_STEP_SUMMARY + fi + echo "" >> $GITHUB_STEP_SUMMARY + echo "
" >> $GITHUB_STEP_SUMMARY - name: Upload link check report uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f with: @@ -182,16 +284,16 @@ jobs: path: html-link-report.md retention-days: 5 - name: Create issue if bad links detected - if: ${{ !cancelled() && env.lychee_exit_code != 0 && env.INPUT_ISSUE_ON_ERROR == 'true' }} + if: ${{ !cancelled() && steps.linkchecker.outputs.exit_code != 0 && env.INPUT_ISSUE_ON_ERROR == 'true' }} uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 with: title: Scheduled Check of Website Content Found Bad Hyperlinks - content-filepath: ./lychee/out.md + content-filepath: html-link-report.md labels: | bug documentation - name: Fail on link check error - if: ${{ !cancelled() && env.lychee_exit_code != 0 && env.INPUT_FAIL_ON_ERROR == 'true' }} + if: ${{ !cancelled() && steps.linkchecker.outputs.exit_code != 0 && env.INPUT_FAIL_ON_ERROR == 'true' }} uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd with: script: | diff --git a/.lycheeignore b/.lycheeignore index 151dd1a61..e1f565d46 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -65,5 +65,6 @@ https://opensource.org/licenses/Apache-2.0,https://opensource.org/licenses/EPL-2 https://glassfish.dev.java.net/.* http://nexus.sonatype.org/oss-repository-hosting.html/.* https://projects.eclipse.org/projects/eclipse.jdt +http://www.gnu.org/software/classpath/license.html # fix later https://github.com/metaschema-framework/liboscal-java/ diff --git a/databind/pom-bootstrap-config.xml b/databind/pom-bootstrap-config.xml index fc2776aa2..0ea013dcf 100644 --- a/databind/pom-bootstrap-config.xml +++ b/databind/pom-bootstrap-config.xml @@ -29,6 +29,8 @@ + + ${project.basedir}/src/main/java org.apache.maven.plugins @@ -85,6 +87,47 @@ + + com.mycila + license-maven-plugin + + + add-license-headers + generate-sources + + format + + + + +
cc0-dedication.txt
+ + src/main/java/gov/nist/secauto/metaschema/databind/config/binding/**/*.java + +
+
+
+
+
+
+ + net.revelc.code.formatter + formatter-maven-plugin + + + format-generated-sources + generate-sources + + format + + + + src/main/java/gov/nist/secauto/metaschema/databind/config/binding/**/*.java + + + + +
diff --git a/databind/pom-bootstrap-model.xml b/databind/pom-bootstrap-model.xml index 747afde54..947af2afb 100644 --- a/databind/pom-bootstrap-model.xml +++ b/databind/pom-bootstrap-model.xml @@ -31,6 +31,8 @@ + + ${project.basedir}/src/main/java org.apache.maven.plugins @@ -90,6 +92,47 @@ + + com.mycila + license-maven-plugin + + + add-license-headers + generate-sources + + format + + + + +
cc0-dedication.txt
+ + src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/**/*.java + +
+
+
+
+
+
+ + net.revelc.code.formatter + formatter-maven-plugin + + + format-generated-sources + generate-sources + + format + + + + src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/**/*.java + + + + +
diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/MetaschemaBindings.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/MetaschemaBindings.java index 1734f4203..fce319647 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/MetaschemaBindings.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/MetaschemaBindings.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../metaschema/metaschema-bindings.yaml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.config.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -39,20 +38,21 @@ description = "The root element for a set of metaschema binding customizations.", name = "metaschema-bindings", moduleClass = MetaschemaBindingsModule.class, - rootName = "metaschema-bindings") + rootName = "metaschema-bindings" +) public class MetaschemaBindings implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * Defines binding configurations that apply to a whole model described by a - * namespace. + * Defines binding configurations that apply to a whole model described by a namespace. */ @BoundAssembly( formalName = "Model Binding", description = "Defines binding configurations that apply to a whole model described by a namespace.", useName = "model-binding", maxOccurs = -1, - groupAs = @GroupAs(name = "model-bindings", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "model-bindings", inJson = JsonGroupAsBehavior.LIST) + ) private List _modelBindings; /** @@ -63,25 +63,22 @@ public class MetaschemaBindings implements IBoundObject { description = "Defines a binding for a given metaschema identified by a relative URL.", useName = "metaschema-binding", maxOccurs = -1, - groupAs = @GroupAs(name = "metaschema-bindings", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "metaschema-bindings", inJson = JsonGroupAsBehavior.LIST) + ) private List _metaschemaBindings; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings} instance with no metadata. */ public MetaschemaBindings() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public MetaschemaBindings(IMetaschemaData data) { this.__metaschemaData = data; @@ -96,8 +93,7 @@ public IMetaschemaData getMetaschemaData() { * Get the model Binding. * *

- * Defines binding configurations that apply to a whole model described by a - * namespace. + * Defines binding configurations that apply to a whole model described by a namespace. * * @return the model-binding value */ @@ -113,11 +109,10 @@ public List getModelBindings() { * Set the model Binding. * *

- * Defines binding configurations that apply to a whole model described by a - * namespace. + * Defines binding configurations that apply to a whole model described by a namespace. * * @param value - * the model-binding value to set + * the model-binding value to set */ public void setModelBindings(@NonNull List value) { _modelBindings = value; @@ -125,13 +120,11 @@ public void setModelBindings(@NonNull List value) { /** * Add a new {@link ModelBinding} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addModelBinding(ModelBinding item) { - ModelBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ModelBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_modelBindings == null) { _modelBindings = new LinkedList<>(); } @@ -139,15 +132,12 @@ public boolean addModelBinding(ModelBinding item) { } /** - * Remove the first matching {@link ModelBinding} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link ModelBinding} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeModelBinding(ModelBinding item) { - ModelBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ModelBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _modelBindings != null && _modelBindings.remove(value); } @@ -174,7 +164,7 @@ public List getMetaschemaBindings() { * Defines a binding for a given metaschema identified by a relative URL. * * @param value - * the metaschema-binding value to set + * the metaschema-binding value to set */ public void setMetaschemaBindings(@NonNull List value) { _metaschemaBindings = value; @@ -182,13 +172,11 @@ public void setMetaschemaBindings(@NonNull List value) { /** * Add a new {@link MetaschemaBinding} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addMetaschemaBinding(MetaschemaBinding item) { - MetaschemaBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetaschemaBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_metaschemaBindings == null) { _metaschemaBindings = new LinkedList<>(); } @@ -196,15 +184,12 @@ public boolean addMetaschemaBinding(MetaschemaBinding item) { } /** - * Remove the first matching {@link MetaschemaBinding} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link MetaschemaBinding} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeMetaschemaBinding(MetaschemaBinding item) { - MetaschemaBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetaschemaBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _metaschemaBindings != null && _metaschemaBindings.remove(value); } @@ -214,27 +199,27 @@ public String toString() { } /** - * Defines binding configurations that apply to a whole model described by a - * namespace. + * Defines binding configurations that apply to a whole model described by a namespace. */ @MetaschemaAssembly( formalName = "Model Binding", description = "Defines binding configurations that apply to a whole model described by a namespace.", name = "model-binding", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class ModelBinding implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * A URI referencing the namespace of one or more related metaschema - * definitions. + * A URI referencing the namespace of one or more related metaschema definitions. */ @BoundFlag( formalName = "Namespace", description = "A URI referencing the namespace of one or more related metaschema definitions.", name = "namespace", required = true, - typeAdapter = UriAdapter.class) + typeAdapter = UriAdapter.class + ) private URI _namespace; /** @@ -243,25 +228,22 @@ public static class ModelBinding implements IBoundObject { @BoundAssembly( formalName = "Java Model Binding", description = "Java-specific binding configuration for a model namespace.", - useName = "java") + useName = "java" + ) private Java _java; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding} instance with no metadata. */ public ModelBinding() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public ModelBinding(IMetaschemaData data) { this.__metaschemaData = data; @@ -276,8 +258,7 @@ public IMetaschemaData getMetaschemaData() { * Get the namespace. * *

- * A URI referencing the namespace of one or more related metaschema - * definitions. + * A URI referencing the namespace of one or more related metaschema definitions. * * @return the namespace value */ @@ -290,11 +271,10 @@ public URI getNamespace() { * Set the namespace. * *

- * A URI referencing the namespace of one or more related metaschema - * definitions. + * A URI referencing the namespace of one or more related metaschema definitions. * * @param value - * the namespace value to set + * the namespace value to set */ public void setNamespace(@NonNull URI value) { _namespace = value; @@ -320,7 +300,7 @@ public Java getJava() { * Java-specific binding configuration for a model namespace. * * @param value - * the java value to set + * the java value to set */ public void setJava(@Nullable Java value) { _java = value; @@ -338,7 +318,8 @@ public String toString() { formalName = "Java Model Binding", description = "Java-specific binding configuration for a model namespace.", name = "java", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class Java implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -349,25 +330,22 @@ public static class Java implements IBoundObject { formalName = "Use Package Name", description = "The Java package name to use for classes generated from this namespace.", useName = "use-package-name", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _usePackageName; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding.Java} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding.Java} instance with no metadata. */ public Java() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding.Java} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.ModelBinding.Java} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Java(IMetaschemaData data) { this.__metaschemaData = data; @@ -398,7 +376,7 @@ public String getUsePackageName() { * The Java package name to use for classes generated from this namespace. * * @param value - * the use-package-name value to set + * the use-package-name value to set */ public void setUsePackageName(@Nullable String value) { _usePackageName = value; @@ -418,62 +396,59 @@ public String toString() { formalName = "Metaschema Binding", description = "Defines a binding for a given metaschema identified by a relative URL.", name = "metaschema-binding", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class MetaschemaBinding implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * A URL relative to this binding configuration file, pointing to a metaschema - * definition. + * A URL relative to this binding configuration file, pointing to a metaschema definition. */ @BoundFlag( formalName = "Href", description = "A URL relative to this binding configuration file, pointing to a metaschema definition.", name = "href", required = true, - typeAdapter = UriReferenceAdapter.class) + typeAdapter = UriReferenceAdapter.class + ) private URI _href; /** - * Provides binding configurations for a given defined assembly within the - * parent metaschema. + * Provides binding configurations for a given defined assembly within the parent metaschema. */ @BoundAssembly( formalName = "Define Assembly Binding", description = "Provides binding configurations for a given defined assembly within the parent metaschema.", useName = "define-assembly-binding", maxOccurs = -1, - groupAs = @GroupAs(name = "define-assembly-bindings", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "define-assembly-bindings", inJson = JsonGroupAsBehavior.LIST) + ) private List _defineAssemblyBindings; /** - * Provides binding configurations for a given defined field within the parent - * metaschema. + * Provides binding configurations for a given defined field within the parent metaschema. */ @BoundAssembly( formalName = "Define Field Binding", description = "Provides binding configurations for a given defined field within the parent metaschema.", useName = "define-field-binding", maxOccurs = -1, - groupAs = @GroupAs(name = "define-field-bindings", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "define-field-bindings", inJson = JsonGroupAsBehavior.LIST) + ) private List _defineFieldBindings; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding} instance with no metadata. */ public MetaschemaBinding() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public MetaschemaBinding(IMetaschemaData data) { this.__metaschemaData = data; @@ -488,8 +463,7 @@ public IMetaschemaData getMetaschemaData() { * Get the href. * *

- * A URL relative to this binding configuration file, pointing to a metaschema - * definition. + * A URL relative to this binding configuration file, pointing to a metaschema definition. * * @return the href value */ @@ -502,11 +476,10 @@ public URI getHref() { * Set the href. * *

- * A URL relative to this binding configuration file, pointing to a metaschema - * definition. + * A URL relative to this binding configuration file, pointing to a metaschema definition. * * @param value - * the href value to set + * the href value to set */ public void setHref(@NonNull URI value) { _href = value; @@ -516,8 +489,7 @@ public void setHref(@NonNull URI value) { * Get the define Assembly Binding. * *

- * Provides binding configurations for a given defined assembly within the - * parent metaschema. + * Provides binding configurations for a given defined assembly within the parent metaschema. * * @return the define-assembly-binding value */ @@ -533,11 +505,10 @@ public List getDefineAssemblyBindings() { * Set the define Assembly Binding. * *

- * Provides binding configurations for a given defined assembly within the - * parent metaschema. + * Provides binding configurations for a given defined assembly within the parent metaschema. * * @param value - * the define-assembly-binding value to set + * the define-assembly-binding value to set */ public void setDefineAssemblyBindings(@NonNull List value) { _defineAssemblyBindings = value; @@ -545,13 +516,11 @@ public void setDefineAssemblyBindings(@NonNull List value /** * Add a new {@link DefineAssemblyBinding} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addDefineAssemblyBinding(DefineAssemblyBinding item) { - DefineAssemblyBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + DefineAssemblyBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_defineAssemblyBindings == null) { _defineAssemblyBindings = new LinkedList<>(); } @@ -559,15 +528,12 @@ public boolean addDefineAssemblyBinding(DefineAssemblyBinding item) { } /** - * Remove the first matching {@link DefineAssemblyBinding} item from the - * underlying collection. - * - * @param item - * the item to remove + * Remove the first matching {@link DefineAssemblyBinding} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeDefineAssemblyBinding(DefineAssemblyBinding item) { - DefineAssemblyBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + DefineAssemblyBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _defineAssemblyBindings != null && _defineAssemblyBindings.remove(value); } @@ -575,8 +541,7 @@ public boolean removeDefineAssemblyBinding(DefineAssemblyBinding item) { * Get the define Field Binding. * *

- * Provides binding configurations for a given defined field within the parent - * metaschema. + * Provides binding configurations for a given defined field within the parent metaschema. * * @return the define-field-binding value */ @@ -592,11 +557,10 @@ public List getDefineFieldBindings() { * Set the define Field Binding. * *

- * Provides binding configurations for a given defined field within the parent - * metaschema. + * Provides binding configurations for a given defined field within the parent metaschema. * * @param value - * the define-field-binding value to set + * the define-field-binding value to set */ public void setDefineFieldBindings(@NonNull List value) { _defineFieldBindings = value; @@ -604,13 +568,11 @@ public void setDefineFieldBindings(@NonNull List value) { /** * Add a new {@link DefineFieldBinding} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addDefineFieldBinding(DefineFieldBinding item) { - DefineFieldBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + DefineFieldBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_defineFieldBindings == null) { _defineFieldBindings = new LinkedList<>(); } @@ -618,15 +580,12 @@ public boolean addDefineFieldBinding(DefineFieldBinding item) { } /** - * Remove the first matching {@link DefineFieldBinding} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link DefineFieldBinding} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeDefineFieldBinding(DefineFieldBinding item) { - DefineFieldBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + DefineFieldBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _defineFieldBindings != null && _defineFieldBindings.remove(value); } @@ -636,14 +595,14 @@ public String toString() { } /** - * Provides binding configurations for a given defined assembly within the - * parent metaschema. + * Provides binding configurations for a given defined assembly within the parent metaschema. */ @MetaschemaAssembly( formalName = "Define Assembly Binding", description = "Provides binding configurations for a given defined assembly within the parent metaschema.", name = "define-assembly-binding", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class DefineAssemblyBinding implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -654,18 +613,19 @@ public static class DefineAssemblyBinding implements IBoundObject { formalName = "Name", description = "The name of the metaschema assembly. Used for top-level definitions.", name = "name", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; /** - * A Metapath expression targeting the assembly definition(s) within the - * metaschema. Used for inline definitions. + * A Metapath expression targeting the assembly definition(s) within the metaschema. Used for inline definitions. */ @BoundFlag( formalName = "Target", description = "A Metapath expression targeting the assembly definition(s) within the metaschema. Used for inline definitions.", name = "target", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** @@ -674,7 +634,8 @@ public static class DefineAssemblyBinding implements IBoundObject { @BoundAssembly( formalName = "Java Object Definition Binding", description = "Field and assembly binding configurations for Java bound classes.", - useName = "java") + useName = "java" + ) private Java _java; /** @@ -685,7 +646,8 @@ public static class DefineAssemblyBinding implements IBoundObject { description = "Provides binding configurations for a property within the parent definition.", useName = "property-binding", maxOccurs = -1, - groupAs = @GroupAs(name = "property-bindings", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "property-bindings", inJson = JsonGroupAsBehavior.LIST) + ) private List _propertyBindings; /** @@ -696,25 +658,22 @@ public static class DefineAssemblyBinding implements IBoundObject { description = "Provides binding configuration for a choice group within the parent assembly.", useName = "choice-group-binding", maxOccurs = -1, - groupAs = @GroupAs(name = "choice-group-bindings", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "choice-group-bindings", inJson = JsonGroupAsBehavior.LIST) + ) private List _choiceGroupBindings; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding} instance with no metadata. */ public DefineAssemblyBinding() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public DefineAssemblyBinding(IMetaschemaData data) { this.__metaschemaData = data; @@ -745,7 +704,7 @@ public String getName() { * The name of the metaschema assembly. Used for top-level definitions. * * @param value - * the name value to set + * the name value to set */ public void setName(@Nullable String value) { _name = value; @@ -755,8 +714,7 @@ public void setName(@Nullable String value) { * Get the target. * *

- * A Metapath expression targeting the assembly definition(s) within the - * metaschema. Used for inline definitions. + * A Metapath expression targeting the assembly definition(s) within the metaschema. Used for inline definitions. * * @return the target value, or {@code null} if not set */ @@ -769,11 +727,10 @@ public String getTarget() { * Set the target. * *

- * A Metapath expression targeting the assembly definition(s) within the - * metaschema. Used for inline definitions. + * A Metapath expression targeting the assembly definition(s) within the metaschema. Used for inline definitions. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@Nullable String value) { _target = value; @@ -799,7 +756,7 @@ public Java getJava() { * Field and assembly binding configurations for Java bound classes. * * @param value - * the java value to set + * the java value to set */ public void setJava(@Nullable Java value) { _java = value; @@ -828,7 +785,7 @@ public List getPropertyBindings() { * Provides binding configurations for a property within the parent definition. * * @param value - * the property-binding value to set + * the property-binding value to set */ public void setPropertyBindings(@NonNull List value) { _propertyBindings = value; @@ -836,13 +793,11 @@ public void setPropertyBindings(@NonNull List value) { /** * Add a new {@link PropertyBinding} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addPropertyBinding(PropertyBinding item) { - PropertyBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + PropertyBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_propertyBindings == null) { _propertyBindings = new LinkedList<>(); } @@ -850,15 +805,12 @@ public boolean addPropertyBinding(PropertyBinding item) { } /** - * Remove the first matching {@link PropertyBinding} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link PropertyBinding} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removePropertyBinding(PropertyBinding item) { - PropertyBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + PropertyBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _propertyBindings != null && _propertyBindings.remove(value); } @@ -885,7 +837,7 @@ public List getChoiceGroupBindings() { * Provides binding configuration for a choice group within the parent assembly. * * @param value - * the choice-group-binding value to set + * the choice-group-binding value to set */ public void setChoiceGroupBindings(@NonNull List value) { _choiceGroupBindings = value; @@ -893,13 +845,11 @@ public void setChoiceGroupBindings(@NonNull List value) { /** * Add a new {@link ChoiceGroupBinding} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addChoiceGroupBinding(ChoiceGroupBinding item) { - ChoiceGroupBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ChoiceGroupBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_choiceGroupBindings == null) { _choiceGroupBindings = new LinkedList<>(); } @@ -907,15 +857,12 @@ public boolean addChoiceGroupBinding(ChoiceGroupBinding item) { } /** - * Remove the first matching {@link ChoiceGroupBinding} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link ChoiceGroupBinding} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeChoiceGroupBinding(ChoiceGroupBinding item) { - ChoiceGroupBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ChoiceGroupBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _choiceGroupBindings != null && _choiceGroupBindings.remove(value); } @@ -931,7 +878,8 @@ public String toString() { formalName = "Java Object Definition Binding", description = "Field and assembly binding configurations for Java bound classes.", name = "java", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class Java implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -942,12 +890,12 @@ public static class Java implements IBoundObject { formalName = "Use Class Name", description = "The Java class name to use for the generated class.", useName = "use-class-name", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _useClassName; /** - * A fully qualified Java interface name that the generated class should - * implement. + * A fully qualified Java interface name that the generated class should implement. */ @BoundField( formalName = "Implement Interface", @@ -955,7 +903,8 @@ public static class Java implements IBoundObject { useName = "implement-interface", maxOccurs = -1, groupAs = @GroupAs(name = "implement-interfaces", inJson = JsonGroupAsBehavior.LIST), - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private List _implementInterfaces; /** @@ -965,7 +914,8 @@ public static class Java implements IBoundObject { formalName = "Extend Base Class", description = "A fully qualified Java class name that the generated class should extend.", useName = "extend-base-class", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _extendBaseClass; /** @@ -975,25 +925,22 @@ public static class Java implements IBoundObject { formalName = "Collection Class", description = "A fully qualified Java collection class name to use instead of the default.", useName = "collection-class", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _collectionClass; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.Java} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.Java} instance with no metadata. */ public Java() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.Java} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.Java} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Java(IMetaschemaData data) { this.__metaschemaData = data; @@ -1024,7 +971,7 @@ public String getUseClassName() { * The Java class name to use for the generated class. * * @param value - * the use-class-name value to set + * the use-class-name value to set */ public void setUseClassName(@Nullable String value) { _useClassName = value; @@ -1034,8 +981,7 @@ public void setUseClassName(@Nullable String value) { * Get the implement Interface. * *

- * A fully qualified Java interface name that the generated class should - * implement. + * A fully qualified Java interface name that the generated class should implement. * * @return the implement-interface value */ @@ -1051,11 +997,10 @@ public List getImplementInterfaces() { * Set the implement Interface. * *

- * A fully qualified Java interface name that the generated class should - * implement. + * A fully qualified Java interface name that the generated class should implement. * * @param value - * the implement-interface value to set + * the implement-interface value to set */ public void setImplementInterfaces(@NonNull List value) { _implementInterfaces = value; @@ -1063,13 +1008,11 @@ public void setImplementInterfaces(@NonNull List value) { /** * Add a new {@link String} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addImplementInterface(String item) { - String value = ObjectUtils.requireNonNull(item, "item cannot be null"); + String value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_implementInterfaces == null) { _implementInterfaces = new LinkedList<>(); } @@ -1078,13 +1021,11 @@ public boolean addImplementInterface(String item) { /** * Remove the first matching {@link String} item from the underlying collection. - * - * @param item - * the item to remove + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeImplementInterface(String item) { - String value = ObjectUtils.requireNonNull(item, "item cannot be null"); + String value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _implementInterfaces != null && _implementInterfaces.remove(value); } @@ -1108,7 +1049,7 @@ public String getExtendBaseClass() { * A fully qualified Java class name that the generated class should extend. * * @param value - * the extend-base-class value to set + * the extend-base-class value to set */ public void setExtendBaseClass(@Nullable String value) { _extendBaseClass = value; @@ -1134,7 +1075,7 @@ public String getCollectionClass() { * A fully qualified Java collection class name to use instead of the default. * * @param value - * the collection-class value to set + * the collection-class value to set */ public void setCollectionClass(@Nullable String value) { _collectionClass = value; @@ -1153,7 +1094,8 @@ public String toString() { formalName = "Property Binding", description = "Provides binding configurations for a property within the parent definition.", name = "property-binding", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class PropertyBinding implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -1165,7 +1107,8 @@ public static class PropertyBinding implements IBoundObject { description = "The name of the property within the parent definition.", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; /** @@ -1174,25 +1117,22 @@ public static class PropertyBinding implements IBoundObject { @BoundAssembly( formalName = "Java Property Binding", description = "Java-specific binding configuration for a property.", - useName = "java") + useName = "java" + ) private Java _java; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.PropertyBinding} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.PropertyBinding} instance with no metadata. */ public PropertyBinding() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.PropertyBinding} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.PropertyBinding} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public PropertyBinding(IMetaschemaData data) { this.__metaschemaData = data; @@ -1223,7 +1163,7 @@ public String getName() { * The name of the property within the parent definition. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -1249,7 +1189,7 @@ public Java getJava() { * Java-specific binding configuration for a property. * * @param value - * the java value to set + * the java value to set */ public void setJava(@Nullable Java value) { _java = value; @@ -1267,7 +1207,8 @@ public String toString() { formalName = "Java Property Binding", description = "Java-specific binding configuration for a property.", name = "java", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class Java implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -1278,25 +1219,22 @@ public static class Java implements IBoundObject { formalName = "Collection Class", description = "A fully qualified Java collection class name to use instead of the default.", useName = "collection-class", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _collectionClass; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.PropertyBinding.Java} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.PropertyBinding.Java} instance with no metadata. */ public Java() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.PropertyBinding.Java} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.PropertyBinding.Java} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Java(IMetaschemaData data) { this.__metaschemaData = data; @@ -1327,7 +1265,7 @@ public String getCollectionClass() { * A fully qualified Java collection class name to use instead of the default. * * @param value - * the collection-class value to set + * the collection-class value to set */ public void setCollectionClass(@Nullable String value) { _collectionClass = value; @@ -1347,7 +1285,8 @@ public String toString() { formalName = "Choice Group Binding", description = "Provides binding configuration for a choice group within the parent assembly.", name = "choice-group-binding", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class ChoiceGroupBinding implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -1359,35 +1298,32 @@ public static class ChoiceGroupBinding implements IBoundObject { description = "The name of the choice group (matches the group-as name in the metaschema).", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; /** - * A fully qualified Java type for collection items. When specified, the - * generated field and getter will use this type instead of Object. + * A fully qualified Java type for collection items. When specified, the generated field and getter will use this type instead of Object. */ @BoundField( formalName = "Item Type", description = "A fully qualified Java type for collection items. When specified, the generated field and getter will use this type instead of Object.", - useName = "item-type") + useName = "item-type" + ) private ItemType _itemType; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.ChoiceGroupBinding} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.ChoiceGroupBinding} instance with no metadata. */ public ChoiceGroupBinding() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.ChoiceGroupBinding} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.ChoiceGroupBinding} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public ChoiceGroupBinding(IMetaschemaData data) { this.__metaschemaData = data; @@ -1418,7 +1354,7 @@ public String getName() { * The name of the choice group (matches the group-as name in the metaschema). * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -1428,8 +1364,7 @@ public void setName(@NonNull String value) { * Get the item Type. * *

- * A fully qualified Java type for collection items. When specified, the - * generated field and getter will use this type instead of Object. + * A fully qualified Java type for collection items. When specified, the generated field and getter will use this type instead of Object. * * @return the item-type value, or {@code null} if not set */ @@ -1442,11 +1377,10 @@ public ItemType getItemType() { * Set the item Type. * *

- * A fully qualified Java type for collection items. When specified, the - * generated field and getter will use this type instead of Object. + * A fully qualified Java type for collection items. When specified, the generated field and getter will use this type instead of Object. * * @param value - * the item-type value to set + * the item-type value to set */ public void setItemType(@Nullable ItemType value) { _itemType = value; @@ -1458,50 +1392,47 @@ public String toString() { } /** - * A fully qualified Java type for collection items. When specified, the - * generated field and getter will use this type instead of Object. + * A fully qualified Java type for collection items. When specified, the generated field and getter will use this type instead of Object. */ @MetaschemaField( formalName = "Item Type", description = "A fully qualified Java type for collection items. When specified, the generated field and getter will use this type instead of Object.", name = "item-type", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class ItemType implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * Whether to use a wildcard bounded type (List<? extends Type>). Defaults - * to true. + * Whether to use a wildcard bounded type (List<? extends Type>). Defaults to true. */ @BoundFlag( formalName = "Use Wildcard", description = "Whether to use a wildcard bounded type (List). Defaults to true.", name = "use-wildcard", defaultValue = "true", - typeAdapter = BooleanAdapter.class) + typeAdapter = BooleanAdapter.class + ) private Boolean _useWildcard; @BoundFieldValue( valueKeyName = "STRVALUE", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _value; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.ChoiceGroupBinding.ItemType} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.ChoiceGroupBinding.ItemType} instance with no metadata. */ public ItemType() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.ChoiceGroupBinding.ItemType} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineAssemblyBinding.ChoiceGroupBinding.ItemType} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public ItemType(IMetaschemaData data) { this.__metaschemaData = data; @@ -1516,8 +1447,7 @@ public IMetaschemaData getMetaschemaData() { * Get the use Wildcard. * *

- * Whether to use a wildcard bounded type (List<? extends Type>). Defaults - * to true. + * Whether to use a wildcard bounded type (List<? extends Type>). Defaults to true. * * @return the use-wildcard value, or {@code null} if not set */ @@ -1530,11 +1460,10 @@ public Boolean getUseWildcard() { * Set the use Wildcard. * *

- * Whether to use a wildcard bounded type (List<? extends Type>). Defaults - * to true. + * Whether to use a wildcard bounded type (List<? extends Type>). Defaults to true. * * @param value - * the use-wildcard value to set + * the use-wildcard value to set */ public void setUseWildcard(@Nullable Boolean value) { _useWildcard = value; @@ -1558,14 +1487,14 @@ public String toString() { } /** - * Provides binding configurations for a given defined field within the parent - * metaschema. + * Provides binding configurations for a given defined field within the parent metaschema. */ @MetaschemaAssembly( formalName = "Define Field Binding", description = "Provides binding configurations for a given defined field within the parent metaschema.", name = "define-field-binding", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class DefineFieldBinding implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -1576,18 +1505,19 @@ public static class DefineFieldBinding implements IBoundObject { formalName = "Name", description = "The name of the metaschema field. Used for top-level definitions.", name = "name", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; /** - * A Metapath expression targeting the field definition(s) within the - * metaschema. Used for inline definitions. + * A Metapath expression targeting the field definition(s) within the metaschema. Used for inline definitions. */ @BoundFlag( formalName = "Target", description = "A Metapath expression targeting the field definition(s) within the metaschema. Used for inline definitions.", name = "target", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** @@ -1596,7 +1526,8 @@ public static class DefineFieldBinding implements IBoundObject { @BoundAssembly( formalName = "Java Object Definition Binding", description = "Field and assembly binding configurations for Java bound classes.", - useName = "java") + useName = "java" + ) private Java _java; /** @@ -1607,25 +1538,22 @@ public static class DefineFieldBinding implements IBoundObject { description = "Provides binding configurations for a property within the parent definition.", useName = "property-binding", maxOccurs = -1, - groupAs = @GroupAs(name = "property-bindings", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "property-bindings", inJson = JsonGroupAsBehavior.LIST) + ) private List _propertyBindings; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding} instance with no metadata. */ public DefineFieldBinding() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public DefineFieldBinding(IMetaschemaData data) { this.__metaschemaData = data; @@ -1656,7 +1584,7 @@ public String getName() { * The name of the metaschema field. Used for top-level definitions. * * @param value - * the name value to set + * the name value to set */ public void setName(@Nullable String value) { _name = value; @@ -1666,8 +1594,7 @@ public void setName(@Nullable String value) { * Get the target. * *

- * A Metapath expression targeting the field definition(s) within the - * metaschema. Used for inline definitions. + * A Metapath expression targeting the field definition(s) within the metaschema. Used for inline definitions. * * @return the target value, or {@code null} if not set */ @@ -1680,11 +1607,10 @@ public String getTarget() { * Set the target. * *

- * A Metapath expression targeting the field definition(s) within the - * metaschema. Used for inline definitions. + * A Metapath expression targeting the field definition(s) within the metaschema. Used for inline definitions. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@Nullable String value) { _target = value; @@ -1710,7 +1636,7 @@ public Java getJava() { * Field and assembly binding configurations for Java bound classes. * * @param value - * the java value to set + * the java value to set */ public void setJava(@Nullable Java value) { _java = value; @@ -1739,7 +1665,7 @@ public List getPropertyBindings() { * Provides binding configurations for a property within the parent definition. * * @param value - * the property-binding value to set + * the property-binding value to set */ public void setPropertyBindings(@NonNull List value) { _propertyBindings = value; @@ -1747,13 +1673,11 @@ public void setPropertyBindings(@NonNull List value) { /** * Add a new {@link PropertyBinding} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addPropertyBinding(PropertyBinding item) { - PropertyBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + PropertyBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_propertyBindings == null) { _propertyBindings = new LinkedList<>(); } @@ -1761,15 +1685,12 @@ public boolean addPropertyBinding(PropertyBinding item) { } /** - * Remove the first matching {@link PropertyBinding} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link PropertyBinding} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removePropertyBinding(PropertyBinding item) { - PropertyBinding value = ObjectUtils.requireNonNull(item, "item cannot be null"); + PropertyBinding value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _propertyBindings != null && _propertyBindings.remove(value); } @@ -1785,7 +1706,8 @@ public String toString() { formalName = "Java Object Definition Binding", description = "Field and assembly binding configurations for Java bound classes.", name = "java", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class Java implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -1796,12 +1718,12 @@ public static class Java implements IBoundObject { formalName = "Use Class Name", description = "The Java class name to use for the generated class.", useName = "use-class-name", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _useClassName; /** - * A fully qualified Java interface name that the generated class should - * implement. + * A fully qualified Java interface name that the generated class should implement. */ @BoundField( formalName = "Implement Interface", @@ -1809,7 +1731,8 @@ public static class Java implements IBoundObject { useName = "implement-interface", maxOccurs = -1, groupAs = @GroupAs(name = "implement-interfaces", inJson = JsonGroupAsBehavior.LIST), - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private List _implementInterfaces; /** @@ -1819,7 +1742,8 @@ public static class Java implements IBoundObject { formalName = "Extend Base Class", description = "A fully qualified Java class name that the generated class should extend.", useName = "extend-base-class", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _extendBaseClass; /** @@ -1829,25 +1753,22 @@ public static class Java implements IBoundObject { formalName = "Collection Class", description = "A fully qualified Java collection class name to use instead of the default.", useName = "collection-class", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _collectionClass; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.Java} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.Java} instance with no metadata. */ public Java() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.Java} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.Java} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Java(IMetaschemaData data) { this.__metaschemaData = data; @@ -1878,7 +1799,7 @@ public String getUseClassName() { * The Java class name to use for the generated class. * * @param value - * the use-class-name value to set + * the use-class-name value to set */ public void setUseClassName(@Nullable String value) { _useClassName = value; @@ -1888,8 +1809,7 @@ public void setUseClassName(@Nullable String value) { * Get the implement Interface. * *

- * A fully qualified Java interface name that the generated class should - * implement. + * A fully qualified Java interface name that the generated class should implement. * * @return the implement-interface value */ @@ -1905,11 +1825,10 @@ public List getImplementInterfaces() { * Set the implement Interface. * *

- * A fully qualified Java interface name that the generated class should - * implement. + * A fully qualified Java interface name that the generated class should implement. * * @param value - * the implement-interface value to set + * the implement-interface value to set */ public void setImplementInterfaces(@NonNull List value) { _implementInterfaces = value; @@ -1917,13 +1836,11 @@ public void setImplementInterfaces(@NonNull List value) { /** * Add a new {@link String} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addImplementInterface(String item) { - String value = ObjectUtils.requireNonNull(item, "item cannot be null"); + String value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_implementInterfaces == null) { _implementInterfaces = new LinkedList<>(); } @@ -1932,13 +1849,11 @@ public boolean addImplementInterface(String item) { /** * Remove the first matching {@link String} item from the underlying collection. - * - * @param item - * the item to remove + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeImplementInterface(String item) { - String value = ObjectUtils.requireNonNull(item, "item cannot be null"); + String value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _implementInterfaces != null && _implementInterfaces.remove(value); } @@ -1962,7 +1877,7 @@ public String getExtendBaseClass() { * A fully qualified Java class name that the generated class should extend. * * @param value - * the extend-base-class value to set + * the extend-base-class value to set */ public void setExtendBaseClass(@Nullable String value) { _extendBaseClass = value; @@ -1988,7 +1903,7 @@ public String getCollectionClass() { * A fully qualified Java collection class name to use instead of the default. * * @param value - * the collection-class value to set + * the collection-class value to set */ public void setCollectionClass(@Nullable String value) { _collectionClass = value; @@ -2007,7 +1922,8 @@ public String toString() { formalName = "Property Binding", description = "Provides binding configurations for a property within the parent definition.", name = "property-binding", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class PropertyBinding implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -2019,7 +1935,8 @@ public static class PropertyBinding implements IBoundObject { description = "The name of the property within the parent definition.", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; /** @@ -2028,25 +1945,22 @@ public static class PropertyBinding implements IBoundObject { @BoundAssembly( formalName = "Java Property Binding", description = "Java-specific binding configuration for a property.", - useName = "java") + useName = "java" + ) private Java _java; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding} instance with no metadata. */ public PropertyBinding() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public PropertyBinding(IMetaschemaData data) { this.__metaschemaData = data; @@ -2077,7 +1991,7 @@ public String getName() { * The name of the property within the parent definition. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -2103,7 +2017,7 @@ public Java getJava() { * Java-specific binding configuration for a property. * * @param value - * the java value to set + * the java value to set */ public void setJava(@Nullable Java value) { _java = value; @@ -2121,7 +2035,8 @@ public String toString() { formalName = "Java Property Binding", description = "Java-specific binding configuration for a property.", name = "java", - moduleClass = MetaschemaBindingsModule.class) + moduleClass = MetaschemaBindingsModule.class + ) public static class Java implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -2132,25 +2047,22 @@ public static class Java implements IBoundObject { formalName = "Collection Class", description = "A fully qualified Java collection class name to use instead of the default.", useName = "collection-class", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _collectionClass; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding.Java} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding.Java} instance with no metadata. */ public Java() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding.Java} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindings.MetaschemaBinding.DefineFieldBinding.PropertyBinding.Java} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Java(IMetaschemaData data) { this.__metaschemaData = data; @@ -2181,7 +2093,7 @@ public String getCollectionClass() { * A fully qualified Java collection class name to use instead of the default. * * @param value - * the collection-class value to set + * the collection-class value to set */ public void setCollectionClass(@Nullable String value) { _collectionClass = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/MetaschemaBindingsModule.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/MetaschemaBindingsModule.java index 701b02b2c..e82cd34bd 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/MetaschemaBindingsModule.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/MetaschemaBindingsModule.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../metaschema/metaschema-bindings.yaml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.config.binding; import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine; @@ -18,21 +17,19 @@ /** * Metaschema Binding Configuration - *

- * This module defines the binding configuration format used to customize Java - * code generation from Metaschema modules. It allows specifying package names, - * class names, interface implementations, base classes, and collection types - * for generated binding classes. - *

+ *

This module defines the binding configuration format used to customize + * Java code generation from Metaschema modules. It allows specifying + * package names, class names, interface implementations, base classes, + * and collection types for generated binding classes.

*/ @MetaschemaModule( assemblies = MetaschemaBindings.class, remarks = "This module defines the binding configuration format used to customize\n" - + "Java code generation from Metaschema modules. It allows specifying\n" - + "package names, class names, interface implementations, base classes,\n" - + "and collection types for generated binding classes.") -public final class MetaschemaBindingsModule - extends AbstractBoundModule { + + "Java code generation from Metaschema modules. It allows specifying\n" + + "package names, class names, interface implementations, base classes,\n" + + "and collection types for generated binding classes." +) +public final class MetaschemaBindingsModule extends AbstractBoundModule { private static final MarkupLine NAME = MarkupLine.fromMarkdown("Metaschema Binding Configuration"); private static final String SHORT_NAME = "metaschema-bindings"; @@ -43,19 +40,18 @@ public final class MetaschemaBindingsModule private static final URI JSON_BASE_URI = URI.create("https://csrc.nist.gov/ns/metaschema-binding/1.0"); - private static final MarkupMultiline REMARKS - = MarkupMultiline.fromMarkdown("This module defines the binding configuration format used to customize\n" - + "Java code generation from Metaschema modules. It allows specifying\n" - + "package names, class names, interface implementations, base classes,\n" - + "and collection types for generated binding classes."); + private static final MarkupMultiline REMARKS = MarkupMultiline.fromMarkdown("This module defines the binding configuration format used to customize\n" + + "Java code generation from Metaschema modules. It allows specifying\n" + + "package names, class names, interface implementations, base classes,\n" + + "and collection types for generated binding classes."); /** * Construct a new module instance. * * @param importedModules - * modules imported by this module + * modules imported by this module * @param bindingContext - * the binding context to associate with this module + * the binding context to associate with this module */ public MetaschemaBindingsModule(List importedModules, IBindingContext bindingContext) { diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/package-info.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/package-info.java index 19e51a9a3..b4593a9da 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/package-info.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/config/binding/package-info.java @@ -5,24 +5,16 @@ // Generated from: ../../../../../../../../metaschema/metaschema-bindings.yaml // Do not edit - changes will be lost when regenerated. /** - * Provides generated binding classes for the Metaschema Binding Configuration - * Metaschema module(s). + * Provides generated Metaschema binding classes for module(s): Metaschema Binding Configuration. *

- * Metaschema Binding Configuration (version 1.0.0) + * version 1.0.0 *

- *

- * This module defines the binding configuration format used to customize Java - * code generation from Metaschema modules. It allows specifying package names, - * class names, interface implementations, base classes, and collection types - * for generated binding classes. - *

+ *

This module defines the binding configuration format used to customize +Java code generation from Metaschema modules. It allows specifying +package names, class names, interface implementations, base classes, +and collection types for generated binding classes.

*/ - @gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaPackage(moduleClass = { - gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindingsModule.class }) -@gov.nist.secauto.metaschema.databind.model.annotations.XmlSchema( - namespace = "https://csrc.nist.gov/ns/metaschema-binding/1.0", - xmlns = { @gov.nist.secauto.metaschema.databind.model.annotations.XmlNs(prefix = "", - namespace = "https://csrc.nist.gov/ns/metaschema-binding/1.0") }, - xmlElementFormDefault = gov.nist.secauto.metaschema.databind.model.annotations.XmlNsForm.QUALIFIED) + gov.nist.secauto.metaschema.databind.config.binding.MetaschemaBindingsModule.class}) +@gov.nist.secauto.metaschema.databind.model.annotations.XmlSchema(namespace = "https://csrc.nist.gov/ns/metaschema-binding/1.0", xmlns = {@gov.nist.secauto.metaschema.databind.model.annotations.XmlNs(prefix = "", namespace = "https://csrc.nist.gov/ns/metaschema-binding/1.0")}, xmlElementFormDefault = gov.nist.secauto.metaschema.databind.model.annotations.XmlNsForm.QUALIFIED) package gov.nist.secauto.metaschema.databind.config.binding; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Any.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Any.java index 6624bf81e..04a201fe7 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Any.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Any.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import gov.nist.secauto.metaschema.core.model.IBoundObject; @@ -17,26 +16,23 @@ @MetaschemaAssembly( formalName = "Any Additional Content", name = "any", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class Any implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Any} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Any} instance with no metadata. */ public Any() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Any} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Any} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Any(IMetaschemaData data) { this.__metaschemaData = data; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyConstraints.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyConstraints.java index 3fe3e5567..93fc5ab2f 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyConstraints.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyConstraints.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -25,7 +24,8 @@ @MetaschemaAssembly( name = "assembly-constraints", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class AssemblyConstraints implements IModelConstraintsBase { private final IMetaschemaData __metaschemaData; @@ -33,7 +33,8 @@ public class AssemblyConstraints implements IModelConstraintsBase { formalName = "Constraint Let Expression", useName = "let", maxOccurs = -1, - groupAs = @GroupAs(name = "lets", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "lets", inJson = JsonGroupAsBehavior.LIST) + ) private List _lets; @BoundChoiceGroup( @@ -41,41 +42,30 @@ public class AssemblyConstraints implements IModelConstraintsBase { maxOccurs = -1, groupAs = @GroupAs(name = "rules", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", - binding = TargetedAllowedValuesConstraint.class), - @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", - binding = TargetedExpectConstraint.class), - @BoundGroupedAssembly(formalName = "Targeted Index Has Key Constraint", useName = "index-has-key", - binding = TargetedIndexHasKeyConstraint.class), - @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", - binding = TargetedMatchesConstraint.class), - @BoundGroupedAssembly(formalName = "Targeted Unique Constraint", useName = "is-unique", - binding = TargetedIsUniqueConstraint.class), - @BoundGroupedAssembly(formalName = "Targeted Index Constraint", useName = "index", - binding = TargetedIndexConstraint.class), - @BoundGroupedAssembly(formalName = "Targeted Cardinality Constraint", useName = "has-cardinality", - binding = TargetedHasCardinalityConstraint.class), - @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", - binding = TargetedReportConstraint.class) - }) + @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", binding = TargetedAllowedValuesConstraint.class), + @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", binding = TargetedExpectConstraint.class), + @BoundGroupedAssembly(formalName = "Targeted Index Has Key Constraint", useName = "index-has-key", binding = TargetedIndexHasKeyConstraint.class), + @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", binding = TargetedMatchesConstraint.class), + @BoundGroupedAssembly(formalName = "Targeted Unique Constraint", useName = "is-unique", binding = TargetedIsUniqueConstraint.class), + @BoundGroupedAssembly(formalName = "Targeted Index Constraint", useName = "index", binding = TargetedIndexConstraint.class), + @BoundGroupedAssembly(formalName = "Targeted Cardinality Constraint", useName = "has-cardinality", binding = TargetedHasCardinalityConstraint.class), + @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", binding = TargetedReportConstraint.class) + } + ) private List _rules; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyConstraints} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyConstraints} instance with no metadata. */ public AssemblyConstraints() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyConstraints} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyConstraints} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public AssemblyConstraints(IMetaschemaData data) { this.__metaschemaData = data; @@ -104,7 +94,7 @@ public List getLets() { * Set the constraint Let Expression. * * @param value - * the let value to set + * the let value to set */ public void setLets(@NonNull List value) { _lets = value; @@ -112,13 +102,11 @@ public void setLets(@NonNull List value) { /** * Add a new {@link ConstraintLetExpression} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addLet(ConstraintLetExpression item) { - ConstraintLetExpression value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ConstraintLetExpression value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_lets == null) { _lets = new LinkedList<>(); } @@ -126,15 +114,12 @@ public boolean addLet(ConstraintLetExpression item) { } /** - * Remove the first matching {@link ConstraintLetExpression} item from the - * underlying collection. - * - * @param item - * the item to remove + * Remove the first matching {@link ConstraintLetExpression} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeLet(ConstraintLetExpression item) { - ConstraintLetExpression value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ConstraintLetExpression value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _lets != null && _lets.remove(value); } @@ -162,7 +147,7 @@ public List getRules() { * Items in this collection must implement {@link ITargetedConstraintBase}. * * @param value - * the rules items to set + * the rules items to set */ public void setRules(@NonNull List value) { _rules = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyModel.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyModel.java index 6e0776a7d..6d28b2309 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyModel.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyModel.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -40,7 +39,8 @@ @MetaschemaAssembly( name = "assembly-model", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class AssemblyModel implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -48,40 +48,34 @@ public class AssemblyModel implements IBoundObject { maxOccurs = -1, groupAs = @GroupAs(name = "instances", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Assembly Reference", useName = "assembly", - discriminatorValue = "assembly-ref", binding = AssemblyReference.class), - @BoundGroupedAssembly(formalName = "Inline Assembly Definition", useName = "define-assembly", - discriminatorValue = "assembly", binding = InlineDefineAssembly.class), - @BoundGroupedAssembly(formalName = "Field Reference", useName = "field", discriminatorValue = "field-ref", - binding = FieldReference.class), - @BoundGroupedAssembly(formalName = "Inline Field Definition", useName = "define-field", - discriminatorValue = "field", binding = InlineDefineField.class), + @BoundGroupedAssembly(formalName = "Assembly Reference", useName = "assembly", discriminatorValue = "assembly-ref", binding = AssemblyReference.class), + @BoundGroupedAssembly(formalName = "Inline Assembly Definition", useName = "define-assembly", discriminatorValue = "assembly", binding = InlineDefineAssembly.class), + @BoundGroupedAssembly(formalName = "Field Reference", useName = "field", discriminatorValue = "field-ref", binding = FieldReference.class), + @BoundGroupedAssembly(formalName = "Inline Field Definition", useName = "define-field", discriminatorValue = "field", binding = InlineDefineField.class), @BoundGroupedAssembly(formalName = "Choice", useName = "choice", binding = Choice.class), @BoundGroupedAssembly(formalName = "Choice Grouping", useName = "choice-group", binding = ChoiceGroup.class) - }) + } + ) private List _instances; @BoundAssembly( formalName = "Any Additional Content", - useName = "any") + useName = "any" + ) private Any _any; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel} instance with no metadata. */ public AssemblyModel() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public AssemblyModel(IMetaschemaData data) { this.__metaschemaData = data; @@ -109,7 +103,7 @@ public List getInstances() { * Set the {@code instances} choice group items. * * @param value - * the instances items to set + * the instances items to set */ public void setInstances(@NonNull List value) { _instances = value; @@ -129,7 +123,7 @@ public Any getAny() { * Set the any Additional Content. * * @param value - * the any value to set + * the any value to set */ public void setAny(@Nullable Any value) { _any = value; @@ -143,7 +137,8 @@ public String toString() { @MetaschemaAssembly( formalName = "Choice", name = "choice", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class Choice implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -152,38 +147,32 @@ public static class Choice implements IBoundObject { maxOccurs = -1, groupAs = @GroupAs(name = "choices", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Assembly Reference", useName = "assembly", - discriminatorValue = "assembly-ref", binding = AssemblyReference.class), - @BoundGroupedAssembly(formalName = "Inline Assembly Definition", useName = "define-assembly", - discriminatorValue = "assembly", binding = InlineDefineAssembly.class), - @BoundGroupedAssembly(formalName = "Field Reference", useName = "field", discriminatorValue = "field-ref", - binding = FieldReference.class), - @BoundGroupedAssembly(formalName = "Inline Field Definition", useName = "define-field", - discriminatorValue = "field", binding = InlineDefineField.class) - }) + @BoundGroupedAssembly(formalName = "Assembly Reference", useName = "assembly", discriminatorValue = "assembly-ref", binding = AssemblyReference.class), + @BoundGroupedAssembly(formalName = "Inline Assembly Definition", useName = "define-assembly", discriminatorValue = "assembly", binding = InlineDefineAssembly.class), + @BoundGroupedAssembly(formalName = "Field Reference", useName = "field", discriminatorValue = "field-ref", binding = FieldReference.class), + @BoundGroupedAssembly(formalName = "Inline Field Definition", useName = "define-field", discriminatorValue = "field", binding = InlineDefineField.class) + } + ) private List _choices; @BoundAssembly( formalName = "Any Additional Content", - useName = "any") + useName = "any" + ) private Any _any; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.Choice} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.Choice} instance with no metadata. */ public Choice() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.Choice} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.Choice} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Choice(IMetaschemaData data) { this.__metaschemaData = data; @@ -211,7 +200,7 @@ public List getChoices() { * Set the {@code choices} choice group items. * * @param value - * the choices items to set + * the choices items to set */ public void setChoices(@NonNull List value) { _choices = value; @@ -231,7 +220,7 @@ public Any getAny() { * Set the any Additional Content. * * @param value - * the any value to set + * the any value to set */ public void setAny(@Nullable Any value) { _any = value; @@ -246,7 +235,8 @@ public String toString() { @MetaschemaAssembly( formalName = "Choice Grouping", name = "choice-group", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class ChoiceGroup implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -254,7 +244,8 @@ public static class ChoiceGroup implements IBoundObject { formalName = "Minimum Occurrence", name = "min-occurs", defaultValue = "0", - typeAdapter = NonNegativeIntegerAdapter.class) + typeAdapter = NonNegativeIntegerAdapter.class + ) private BigInteger _minOccurs; @BoundFlag( @@ -262,32 +253,33 @@ public static class ChoiceGroup implements IBoundObject { name = "max-occurs", defaultValue = "unbounded", typeAdapter = StringAdapter.class, - valueConstraints = @ValueConstraints( - matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$"))) + valueConstraints = @ValueConstraints(matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$")) + ) private String _maxOccurs; /** - * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. */ @BoundAssembly( formalName = "JSON Key", description = "Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share `json-key` values.", - useName = "json-key") + useName = "json-key" + ) private JsonKey _jsonKey; @BoundAssembly( formalName = "Group As", useName = "group-as", - minOccurs = 1) + minOccurs = 1 + ) private GroupingAs _groupAs; @BoundField( formalName = "Discriminator JSON Property", useName = "discriminator", defaultValue = "object-type", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _discriminator; @BoundChoiceGroup( @@ -295,43 +287,36 @@ public static class ChoiceGroup implements IBoundObject { maxOccurs = -1, groupAs = @GroupAs(name = "choices", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Grouping Assembly Reference", useName = "assembly", - discriminatorValue = "assembly-ref", binding = Assembly.class), - @BoundGroupedAssembly(formalName = "Inline Assembly Definition", useName = "define-assembly", - discriminatorValue = "assembly", binding = DefineAssembly.class), - @BoundGroupedAssembly(formalName = "Grouping Field Reference", useName = "field", - discriminatorValue = "field-ref", binding = Field.class), - @BoundGroupedAssembly(formalName = "Inline Field Definition", useName = "define-field", - discriminatorValue = "field", binding = DefineField.class) - }) + @BoundGroupedAssembly(formalName = "Grouping Assembly Reference", useName = "assembly", discriminatorValue = "assembly-ref", binding = Assembly.class), + @BoundGroupedAssembly(formalName = "Inline Assembly Definition", useName = "define-assembly", discriminatorValue = "assembly", binding = DefineAssembly.class), + @BoundGroupedAssembly(formalName = "Grouping Field Reference", useName = "field", discriminatorValue = "field-ref", binding = Field.class), + @BoundGroupedAssembly(formalName = "Inline Field Definition", useName = "define-field", discriminatorValue = "field", binding = DefineField.class) + } + ) private List _choices; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup} instance with no metadata. */ public ChoiceGroup() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public ChoiceGroup(IMetaschemaData data) { this.__metaschemaData = data; @@ -356,7 +341,7 @@ public BigInteger getMinOccurs() { * Set the minimum Occurrence. * * @param value - * the min-occurs value to set + * the min-occurs value to set */ public void setMinOccurs(@Nullable BigInteger value) { _minOccurs = value; @@ -376,7 +361,7 @@ public String getMaxOccurs() { * Set the maximum Occurrence. * * @param value - * the max-occurs value to set + * the max-occurs value to set */ public void setMaxOccurs(@Nullable String value) { _maxOccurs = value; @@ -386,9 +371,7 @@ public void setMaxOccurs(@Nullable String value) { * Get the jSON Key. * *

- * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. * * @return the json-key value, or {@code null} if not set */ @@ -401,12 +384,10 @@ public JsonKey getJsonKey() { * Set the jSON Key. * *

- * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. * * @param value - * the json-key value to set + * the json-key value to set */ public void setJsonKey(@Nullable JsonKey value) { _jsonKey = value; @@ -426,7 +407,7 @@ public GroupingAs getGroupAs() { * Set the group As. * * @param value - * the group-as value to set + * the group-as value to set */ public void setGroupAs(@NonNull GroupingAs value) { _groupAs = value; @@ -446,7 +427,7 @@ public String getDiscriminator() { * Set the discriminator JSON Property. * * @param value - * the discriminator value to set + * the discriminator value to set */ public void setDiscriminator(@Nullable String value) { _discriminator = value; @@ -469,7 +450,7 @@ public List getChoices() { * Set the {@code choices} choice group items. * * @param value - * the choices items to set + * the choices items to set */ public void setChoices(@NonNull List value) { _choices = value; @@ -479,8 +460,7 @@ public void setChoices(@NonNull List value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -493,11 +473,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -511,7 +490,8 @@ public String toString() { @MetaschemaAssembly( formalName = "Grouping Assembly Reference", name = "assembly", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class Assembly implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -519,19 +499,22 @@ public static class Assembly implements IBoundObject { formalName = "Global Assembly Reference", name = "ref", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _ref; @BoundFlag( formalName = "Assembly Reference Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; /** @@ -541,25 +524,27 @@ public static class Assembly implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; /** @@ -568,41 +553,39 @@ public static class Assembly implements IBoundObject { @BoundField( formalName = "Use Name", description = "Allows the name of the definition to be overridden.", - useName = "use-name") + useName = "use-name" + ) private UseName _useName; @BoundField( formalName = "Grouping Discriminator Value", useName = "discriminator-value", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _discriminatorValue; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.Assembly} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.Assembly} instance with no metadata. */ public Assembly() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.Assembly} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.Assembly} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Assembly(IMetaschemaData data) { this.__metaschemaData = data; @@ -627,7 +610,7 @@ public String getRef() { * Set the global Assembly Reference. * * @param value - * the ref value to set + * the ref value to set */ public void setRef(@NonNull String value) { _ref = value; @@ -647,7 +630,7 @@ public BigInteger getIndex() { * Set the assembly Reference Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -667,7 +650,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -693,7 +676,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -703,8 +686,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -717,11 +699,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -744,7 +725,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -752,13 +733,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -766,15 +745,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -798,7 +774,7 @@ public UseName getUseName() { * Allows the name of the definition to be overridden. * * @param value - * the use-name value to set + * the use-name value to set */ public void setUseName(@Nullable UseName value) { _useName = value; @@ -818,7 +794,7 @@ public String getDiscriminatorValue() { * Set the grouping Discriminator Value. * * @param value - * the discriminator-value value to set + * the discriminator-value value to set */ public void setDiscriminatorValue(@Nullable String value) { _discriminatorValue = value; @@ -828,8 +804,7 @@ public void setDiscriminatorValue(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -842,11 +817,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -861,7 +835,8 @@ public String toString() { @MetaschemaAssembly( formalName = "Inline Assembly Definition", name = "define-assembly", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class DefineAssembly implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -869,19 +844,22 @@ public static class DefineAssembly implements IBoundObject { formalName = "Inline Assembly Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Inline Assembly Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; /** @@ -891,85 +869,86 @@ public static class DefineAssembly implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( formalName = "Grouping Discriminator Value", useName = "discriminator-value", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _discriminatorValue; @BoundChoiceGroup( maxOccurs = -1, groupAs = @GroupAs(name = "flags", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", - discriminatorValue = "flag", binding = InlineDefineFlag.class), - @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", - binding = FlagReference.class) - }) + @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", discriminatorValue = "flag", binding = InlineDefineFlag.class), + @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", binding = FlagReference.class) + } + ) private List _flags; @BoundAssembly( - useName = "model") + useName = "model" + ) private AssemblyModel _model; @BoundAssembly( - useName = "constraint") + useName = "constraint" + ) private AssemblyConstraints _constraint; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; @BoundAssembly( formalName = "Example", useName = "example", maxOccurs = -1, - groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST) + ) private List _examples; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.DefineAssembly} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.DefineAssembly} instance with no metadata. */ public DefineAssembly() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.DefineAssembly} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.DefineAssembly} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public DefineAssembly(IMetaschemaData data) { this.__metaschemaData = data; @@ -994,7 +973,7 @@ public String getName() { * Set the inline Assembly Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -1014,7 +993,7 @@ public BigInteger getIndex() { * Set the inline Assembly Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -1034,7 +1013,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -1060,7 +1039,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -1070,8 +1049,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -1084,11 +1062,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -1111,7 +1088,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -1119,13 +1096,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -1133,15 +1108,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -1159,7 +1131,7 @@ public String getDiscriminatorValue() { * Set the grouping Discriminator Value. * * @param value - * the discriminator-value value to set + * the discriminator-value value to set */ public void setDiscriminatorValue(@Nullable String value) { _discriminatorValue = value; @@ -1182,7 +1154,7 @@ public List getFlags() { * Set the {@code flags} choice group items. * * @param value - * the flags items to set + * the flags items to set */ public void setFlags(@NonNull List value) { _flags = value; @@ -1202,7 +1174,7 @@ public AssemblyModel getModel() { * Set the {@code model} property. * * @param value - * the model value to set + * the model value to set */ public void setModel(@Nullable AssemblyModel value) { _model = value; @@ -1222,7 +1194,7 @@ public AssemblyConstraints getConstraint() { * Set the {@code constraint} property. * * @param value - * the constraint value to set + * the constraint value to set */ public void setConstraint(@Nullable AssemblyConstraints value) { _constraint = value; @@ -1232,8 +1204,7 @@ public void setConstraint(@Nullable AssemblyConstraints value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -1246,11 +1217,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -1273,7 +1243,7 @@ public List getExamples() { * Set the example. * * @param value - * the example value to set + * the example value to set */ public void setExamples(@NonNull List value) { _examples = value; @@ -1281,13 +1251,11 @@ public void setExamples(@NonNull List value) { /** * Add a new {@link Example} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_examples == null) { _examples = new LinkedList<>(); } @@ -1295,15 +1263,12 @@ public boolean addExample(Example item) { } /** - * Remove the first matching {@link Example} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Example} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _examples != null && _examples.remove(value); } @@ -1316,7 +1281,8 @@ public String toString() { @MetaschemaAssembly( formalName = "Grouping Field Reference", name = "field", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class Field implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -1324,25 +1290,29 @@ public static class Field implements IBoundObject { formalName = "Global Field Reference", name = "ref", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _ref; @BoundFlag( formalName = "Field Reference Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFlag( formalName = "Default Field Value", name = "default", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _default; @BoundFlag( @@ -1350,13 +1320,8 @@ public static class Field implements IBoundObject { name = "in-xml", defaultValue = "WRAPPED", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "WRAPPED", - description = "Block contents of a markup-multiline field will be represented with a containing (wrapper) element in the XML."), - @AllowedValue(value = "UNWRAPPED", - description = "Block contents of a markup-multiline will be represented in the XML with no wrapper, making the field implicit. Among sibling fields in a given model, only one of them may be designated as UNWRAPPED."), - @AllowedValue(value = "WITH_WRAPPER", description = "Alias for WRAPPED.", - deprecatedVersion = "0.9.0") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "WRAPPED", description = "Block contents of a markup-multiline field will be represented with a containing (wrapper) element in the XML."), @AllowedValue(value = "UNWRAPPED", description = "Block contents of a markup-multiline will be represented in the XML with no wrapper, making the field implicit. Among sibling fields in a given model, only one of them may be designated as UNWRAPPED."), @AllowedValue(value = "WITH_WRAPPER", description = "Alias for WRAPPED.", deprecatedVersion = "0.9.0")})) + ) private String _inXml; /** @@ -1366,25 +1331,27 @@ public static class Field implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; /** @@ -1393,41 +1360,39 @@ public static class Field implements IBoundObject { @BoundField( formalName = "Use Name", description = "Allows the name of the definition to be overridden.", - useName = "use-name") + useName = "use-name" + ) private UseName _useName; @BoundField( formalName = "Grouping Discriminator Value", useName = "discriminator-value", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _discriminatorValue; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.Field} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.Field} instance with no metadata. */ public Field() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.Field} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.Field} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Field(IMetaschemaData data) { this.__metaschemaData = data; @@ -1452,7 +1417,7 @@ public String getRef() { * Set the global Field Reference. * * @param value - * the ref value to set + * the ref value to set */ public void setRef(@NonNull String value) { _ref = value; @@ -1472,7 +1437,7 @@ public BigInteger getIndex() { * Set the field Reference Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -1492,7 +1457,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -1512,7 +1477,7 @@ public String getDefault() { * Set the default Field Value. * * @param value - * the default value to set + * the default value to set */ public void setDefault(@Nullable String value) { _default = value; @@ -1532,7 +1497,7 @@ public String getInXml() { * Set the field In XML. * * @param value - * the in-xml value to set + * the in-xml value to set */ public void setInXml(@Nullable String value) { _inXml = value; @@ -1558,7 +1523,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -1568,8 +1533,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -1582,11 +1546,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -1609,7 +1572,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -1617,13 +1580,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -1631,15 +1592,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -1663,7 +1621,7 @@ public UseName getUseName() { * Allows the name of the definition to be overridden. * * @param value - * the use-name value to set + * the use-name value to set */ public void setUseName(@Nullable UseName value) { _useName = value; @@ -1683,7 +1641,7 @@ public String getDiscriminatorValue() { * Set the grouping Discriminator Value. * * @param value - * the discriminator-value value to set + * the discriminator-value value to set */ public void setDiscriminatorValue(@Nullable String value) { _discriminatorValue = value; @@ -1693,8 +1651,7 @@ public void setDiscriminatorValue(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -1707,11 +1664,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -1726,7 +1682,8 @@ public String toString() { @MetaschemaAssembly( formalName = "Inline Field Definition", name = "define-field", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class DefineField implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -1734,19 +1691,22 @@ public static class DefineField implements IBoundObject { formalName = "Inline Field Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Inline Field Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFlag( @@ -1754,76 +1714,15 @@ public static class DefineField implements IBoundObject { name = "as-type", defaultValue = "string", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - allowOthers = true, - values = { @AllowedValue(value = "markup-line", - description = "The [markup-line](https://framework.metaschema.dev/specification/datatypes/#markup-line) data type."), - @AllowedValue(value = "markup-multiline", - description = "The [markup-multiline](https://framework.metaschema.dev/specification/datatypes/#markup-multiline) data type."), - @AllowedValue(value = "base64", - description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), - @AllowedValue(value = "boolean", - description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), - @AllowedValue(value = "date", - description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), - @AllowedValue(value = "date-time", - description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), - @AllowedValue(value = "date-time-with-timezone", - description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), - @AllowedValue(value = "date-with-timezone", - description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), - @AllowedValue(value = "day-time-duration", - description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), - @AllowedValue(value = "decimal", - description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), - @AllowedValue(value = "email-address", - description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), - @AllowedValue(value = "hostname", - description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), - @AllowedValue(value = "integer", - description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), - @AllowedValue(value = "ip-v4-address", - description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), - @AllowedValue(value = "ip-v6-address", - description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), - @AllowedValue(value = "non-negative-integer", - description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), - @AllowedValue(value = "positive-integer", - description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), - @AllowedValue(value = "string", - description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), - @AllowedValue(value = "token", - description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), - @AllowedValue(value = "uri", - description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), - @AllowedValue(value = "uri-reference", - description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), - @AllowedValue(value = "uuid", - description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), - @AllowedValue(value = "base64Binary", - description = "An old name which is deprecated for use in favor of the 'base64' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime", - description = "An old name which is deprecated for use in favor of the 'date-time' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime-with-timezone", - description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "email", - description = "An old name which is deprecated for use in favor of the 'email-address' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "nonNegativeInteger", - description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "positiveInteger", - description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", - deprecatedVersion = "1.0.0") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, allowOthers = true, values = {@AllowedValue(value = "markup-line", description = "The [markup-line](https://framework.metaschema.dev/specification/datatypes/#markup-line) data type."), @AllowedValue(value = "markup-multiline", description = "The [markup-multiline](https://framework.metaschema.dev/specification/datatypes/#markup-multiline) data type."), @AllowedValue(value = "base64", description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), @AllowedValue(value = "boolean", description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), @AllowedValue(value = "date", description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), @AllowedValue(value = "date-time", description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), @AllowedValue(value = "date-time-with-timezone", description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), @AllowedValue(value = "date-with-timezone", description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), @AllowedValue(value = "day-time-duration", description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), @AllowedValue(value = "decimal", description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), @AllowedValue(value = "email-address", description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), @AllowedValue(value = "hostname", description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), @AllowedValue(value = "integer", description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), @AllowedValue(value = "ip-v4-address", description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), @AllowedValue(value = "ip-v6-address", description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), @AllowedValue(value = "non-negative-integer", description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), @AllowedValue(value = "positive-integer", description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), @AllowedValue(value = "string", description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), @AllowedValue(value = "token", description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), @AllowedValue(value = "uri", description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), @AllowedValue(value = "uri-reference", description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), @AllowedValue(value = "uuid", description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), @AllowedValue(value = "base64Binary", description = "An old name which is deprecated for use in favor of the 'base64' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime", description = "An old name which is deprecated for use in favor of the 'date-time' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime-with-timezone", description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "email", description = "An old name which is deprecated for use in favor of the 'email-address' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "nonNegativeInteger", description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "positiveInteger", description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", deprecatedVersion = "1.0.0")})) + ) private String _asType; @BoundFlag( formalName = "Default Field Value", name = "default", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _default; /** @@ -1833,96 +1732,100 @@ public static class DefineField implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( formalName = "Grouping Discriminator Value", useName = "discriminator-value", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _discriminatorValue; @BoundField( formalName = "Field Value JSON Property Name", useName = "json-value-key", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) @BoundChoice( - choiceId = "choice-1") + choiceId = "choice-1" + ) private String _jsonValueKey; @BoundAssembly( formalName = "Flag Used as the Field Value's JSON Property Name", - useName = "json-value-key-flag") + useName = "json-value-key-flag" + ) @BoundChoice( - choiceId = "choice-1") + choiceId = "choice-1" + ) private JsonValueKeyFlag _jsonValueKeyFlag; @BoundChoiceGroup( maxOccurs = -1, groupAs = @GroupAs(name = "flags", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", - discriminatorValue = "flag", binding = InlineDefineFlag.class), - @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", - binding = FlagReference.class) - }) + @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", discriminatorValue = "flag", binding = InlineDefineFlag.class), + @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", binding = FlagReference.class) + } + ) private List _flags; @BoundAssembly( - useName = "constraint") + useName = "constraint" + ) private FieldConstraints _constraint; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; @BoundAssembly( formalName = "Example", useName = "example", maxOccurs = -1, - groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST) + ) private List _examples; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.DefineField} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.DefineField} instance with no metadata. */ public DefineField() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.DefineField} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyModel.ChoiceGroup.DefineField} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public DefineField(IMetaschemaData data) { this.__metaschemaData = data; @@ -1947,7 +1850,7 @@ public String getName() { * Set the inline Field Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -1967,7 +1870,7 @@ public BigInteger getIndex() { * Set the inline Field Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -1987,7 +1890,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -2007,7 +1910,7 @@ public String getAsType() { * Set the field Value Data Type. * * @param value - * the as-type value to set + * the as-type value to set */ public void setAsType(@Nullable String value) { _asType = value; @@ -2027,7 +1930,7 @@ public String getDefault() { * Set the default Field Value. * * @param value - * the default value to set + * the default value to set */ public void setDefault(@Nullable String value) { _default = value; @@ -2053,7 +1956,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -2063,8 +1966,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -2077,11 +1979,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -2104,7 +2005,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -2112,13 +2013,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -2126,15 +2025,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -2152,7 +2048,7 @@ public String getDiscriminatorValue() { * Set the grouping Discriminator Value. * * @param value - * the discriminator-value value to set + * the discriminator-value value to set */ public void setDiscriminatorValue(@Nullable String value) { _discriminatorValue = value; @@ -2172,7 +2068,7 @@ public String getJsonValueKey() { * Set the field Value JSON Property Name. * * @param value - * the json-value-key value to set + * the json-value-key value to set */ public void setJsonValueKey(@Nullable String value) { _jsonValueKey = value; @@ -2192,7 +2088,7 @@ public JsonValueKeyFlag getJsonValueKeyFlag() { * Set the flag Used as the Field Value's JSON Property Name. * * @param value - * the json-value-key-flag value to set + * the json-value-key-flag value to set */ public void setJsonValueKeyFlag(@Nullable JsonValueKeyFlag value) { _jsonValueKeyFlag = value; @@ -2215,7 +2111,7 @@ public List getFlags() { * Set the {@code flags} choice group items. * * @param value - * the flags items to set + * the flags items to set */ public void setFlags(@NonNull List value) { _flags = value; @@ -2235,7 +2131,7 @@ public FieldConstraints getConstraint() { * Set the {@code constraint} property. * * @param value - * the constraint value to set + * the constraint value to set */ public void setConstraint(@Nullable FieldConstraints value) { _constraint = value; @@ -2245,8 +2141,7 @@ public void setConstraint(@Nullable FieldConstraints value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -2259,11 +2154,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -2286,7 +2180,7 @@ public List getExamples() { * Set the example. * * @param value - * the example value to set + * the example value to set */ public void setExamples(@NonNull List value) { _examples = value; @@ -2294,13 +2188,11 @@ public void setExamples(@NonNull List value) { /** * Add a new {@link Example} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_examples == null) { _examples = new LinkedList<>(); } @@ -2308,15 +2200,12 @@ public boolean addExample(Example item) { } /** - * Remove the first matching {@link Example} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Example} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _examples != null && _examples.remove(value); } diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyReference.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyReference.java index 0fc28a9e0..a3118da98 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyReference.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/AssemblyReference.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -36,7 +35,8 @@ @MetaschemaAssembly( formalName = "Assembly Reference", name = "assembly-reference", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class AssemblyReference implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -44,26 +44,30 @@ public class AssemblyReference implements IBoundObject { formalName = "Global Assembly Reference", name = "ref", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _ref; @BoundFlag( formalName = "Assembly Reference Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFlag( formalName = "Minimum Occurrence", name = "min-occurs", defaultValue = "0", - typeAdapter = NonNegativeIntegerAdapter.class) + typeAdapter = NonNegativeIntegerAdapter.class + ) private BigInteger _minOccurs; @BoundFlag( @@ -71,8 +75,8 @@ public class AssemblyReference implements IBoundObject { name = "max-occurs", defaultValue = "1", typeAdapter = StringAdapter.class, - valueConstraints = @ValueConstraints( - matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$"))) + valueConstraints = @ValueConstraints(matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$")) + ) private String _maxOccurs; /** @@ -82,25 +86,27 @@ public class AssemblyReference implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; /** @@ -109,40 +115,38 @@ public class AssemblyReference implements IBoundObject { @BoundField( formalName = "Use Name", description = "Allows the name of the definition to be overridden.", - useName = "use-name") + useName = "use-name" + ) private UseName _useName; @BoundAssembly( formalName = "Group As", - useName = "group-as") + useName = "group-as" + ) private GroupingAs _groupAs; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyReference} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyReference} instance with no metadata. */ public AssemblyReference() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyReference} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.AssemblyReference} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public AssemblyReference(IMetaschemaData data) { this.__metaschemaData = data; @@ -167,7 +171,7 @@ public String getRef() { * Set the global Assembly Reference. * * @param value - * the ref value to set + * the ref value to set */ public void setRef(@NonNull String value) { _ref = value; @@ -187,7 +191,7 @@ public BigInteger getIndex() { * Set the assembly Reference Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -207,7 +211,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -227,7 +231,7 @@ public BigInteger getMinOccurs() { * Set the minimum Occurrence. * * @param value - * the min-occurs value to set + * the min-occurs value to set */ public void setMinOccurs(@Nullable BigInteger value) { _minOccurs = value; @@ -247,7 +251,7 @@ public String getMaxOccurs() { * Set the maximum Occurrence. * * @param value - * the max-occurs value to set + * the max-occurs value to set */ public void setMaxOccurs(@Nullable String value) { _maxOccurs = value; @@ -273,7 +277,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -283,8 +287,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -297,11 +300,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -324,7 +326,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -332,13 +334,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -346,15 +346,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -378,7 +375,7 @@ public UseName getUseName() { * Allows the name of the definition to be overridden. * * @param value - * the use-name value to set + * the use-name value to set */ public void setUseName(@Nullable UseName value) { _useName = value; @@ -398,7 +395,7 @@ public GroupingAs getGroupAs() { * Set the group As. * * @param value - * the group-as value to set + * the group-as value to set */ public void setGroupAs(@Nullable GroupingAs value) { _groupAs = value; @@ -408,8 +405,7 @@ public void setGroupAs(@Nullable GroupingAs value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -422,11 +418,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/ConstraintLetExpression.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/ConstraintLetExpression.java index b9a119e3e..cf6c4db92 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/ConstraintLetExpression.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/ConstraintLetExpression.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -23,7 +22,8 @@ @MetaschemaAssembly( formalName = "Constraint Let Expression", name = "constraint-let-expression", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class ConstraintLetExpression implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -31,42 +31,40 @@ public class ConstraintLetExpression implements IBoundObject { formalName = "Let Variable Name", name = "var", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _var; @BoundFlag( formalName = "Let Value Metapath Expression", name = "expression", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _expression; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.ConstraintLetExpression} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.ConstraintLetExpression} instance with no metadata. */ public ConstraintLetExpression() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.ConstraintLetExpression} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.ConstraintLetExpression} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public ConstraintLetExpression(IMetaschemaData data) { this.__metaschemaData = data; @@ -91,7 +89,7 @@ public String getVar() { * Set the let Variable Name. * * @param value - * the var value to set + * the var value to set */ public void setVar(@NonNull String value) { _var = value; @@ -111,7 +109,7 @@ public String getExpression() { * Set the let Value Metapath Expression. * * @param value - * the expression value to set + * the expression value to set */ public void setExpression(@NonNull String value) { _expression = value; @@ -121,8 +119,7 @@ public void setExpression(@NonNull String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -135,11 +132,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/ConstraintValueEnum.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/ConstraintValueEnum.java index d5a5aeb28..be042a295 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/ConstraintValueEnum.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/ConstraintValueEnum.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -25,46 +24,44 @@ @MetaschemaField( formalName = "Allowed Value Enumeration", name = "constraint-value-enum", - moduleClass = MetaschemaModelModule.class) -public class ConstraintValueEnum - extends AbstractAllowedValue - implements IBoundObject { + moduleClass = MetaschemaModelModule.class +) +public class ConstraintValueEnum extends AbstractAllowedValue implements IBoundObject { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Allowed Value Enumeration Value", name = "value", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _value; @BoundFlag( formalName = "Allowed Value Deprecation Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFieldValue( valueKeyName = "remark", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _remark; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.ConstraintValueEnum} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.ConstraintValueEnum} instance with no metadata. */ public ConstraintValueEnum() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.ConstraintValueEnum} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.ConstraintValueEnum} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public ConstraintValueEnum(IMetaschemaData data) { this.__metaschemaData = data; @@ -90,7 +87,7 @@ public String getValue() { * Set the allowed Value Enumeration Value. * * @param value - * the value value to set + * the value value to set */ public void setValue(@NonNull String value) { _value = value; @@ -111,7 +108,7 @@ public String getDeprecated() { * Set the allowed Value Deprecation Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Example.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Example.java index 80fb10e74..3c47279d9 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Example.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Example.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.Nullable; @@ -25,53 +24,53 @@ @MetaschemaAssembly( formalName = "Example", name = "example", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class Example implements IBoundObject { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Example Reference", name = "ref", - typeAdapter = UriReferenceAdapter.class) + typeAdapter = UriReferenceAdapter.class + ) private URI _ref; @BoundFlag( name = "path", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _path; @BoundField( formalName = "Example Description", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Example} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Example} instance with no metadata. */ public Example() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Example} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Example} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Example(IMetaschemaData data) { this.__metaschemaData = data; @@ -96,7 +95,7 @@ public URI getRef() { * Set the example Reference. * * @param value - * the ref value to set + * the ref value to set */ public void setRef(@Nullable URI value) { _ref = value; @@ -116,7 +115,7 @@ public String getPath() { * Set the {@code path} property. * * @param value - * the path value to set + * the path value to set */ public void setPath(@Nullable String value) { _path = value; @@ -136,7 +135,7 @@ public MarkupLine getDescription() { * Set the example Description. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -146,8 +145,7 @@ public void setDescription(@Nullable MarkupLine value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -160,11 +158,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FieldConstraints.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FieldConstraints.java index cb754e2c1..a3a41f7df 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FieldConstraints.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FieldConstraints.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -25,7 +24,8 @@ @MetaschemaAssembly( name = "field-constraints", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class FieldConstraints implements IValueTargetedConstraintsBase { private final IMetaschemaData __metaschemaData; @@ -33,7 +33,8 @@ public class FieldConstraints implements IValueTargetedConstraintsBase { formalName = "Constraint Let Expression", useName = "let", maxOccurs = -1, - groupAs = @GroupAs(name = "lets", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "lets", inJson = JsonGroupAsBehavior.LIST) + ) private List _lets; @BoundChoiceGroup( @@ -41,35 +42,27 @@ public class FieldConstraints implements IValueTargetedConstraintsBase { maxOccurs = -1, groupAs = @GroupAs(name = "rules", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", - binding = TargetedAllowedValuesConstraint.class), - @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", - binding = TargetedExpectConstraint.class), - @BoundGroupedAssembly(formalName = "Targeted Index Has Key Constraint", useName = "index-has-key", - binding = TargetedIndexHasKeyConstraint.class), - @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", - binding = TargetedMatchesConstraint.class), - @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", - binding = TargetedReportConstraint.class) - }) + @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", binding = TargetedAllowedValuesConstraint.class), + @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", binding = TargetedExpectConstraint.class), + @BoundGroupedAssembly(formalName = "Targeted Index Has Key Constraint", useName = "index-has-key", binding = TargetedIndexHasKeyConstraint.class), + @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", binding = TargetedMatchesConstraint.class), + @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", binding = TargetedReportConstraint.class) + } + ) private List _rules; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FieldConstraints} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FieldConstraints} instance with no metadata. */ public FieldConstraints() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FieldConstraints} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FieldConstraints} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public FieldConstraints(IMetaschemaData data) { this.__metaschemaData = data; @@ -98,7 +91,7 @@ public List getLets() { * Set the constraint Let Expression. * * @param value - * the let value to set + * the let value to set */ public void setLets(@NonNull List value) { _lets = value; @@ -106,13 +99,11 @@ public void setLets(@NonNull List value) { /** * Add a new {@link ConstraintLetExpression} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addLet(ConstraintLetExpression item) { - ConstraintLetExpression value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ConstraintLetExpression value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_lets == null) { _lets = new LinkedList<>(); } @@ -120,15 +111,12 @@ public boolean addLet(ConstraintLetExpression item) { } /** - * Remove the first matching {@link ConstraintLetExpression} item from the - * underlying collection. - * - * @param item - * the item to remove + * Remove the first matching {@link ConstraintLetExpression} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeLet(ConstraintLetExpression item) { - ConstraintLetExpression value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ConstraintLetExpression value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _lets != null && _lets.remove(value); } @@ -156,7 +144,7 @@ public List getRules() { * Items in this collection must implement {@link ITargetedConstraintBase}. * * @param value - * the rules items to set + * the rules items to set */ public void setRules(@NonNull List value) { _rules = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FieldReference.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FieldReference.java index e76c44666..27026c100 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FieldReference.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FieldReference.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -38,7 +37,8 @@ @MetaschemaAssembly( formalName = "Field Reference", name = "field-reference", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class FieldReference implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -46,32 +46,37 @@ public class FieldReference implements IBoundObject { formalName = "Global Field Reference", name = "ref", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _ref; @BoundFlag( formalName = "Field Reference Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFlag( formalName = "Default Field Value", name = "default", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _default; @BoundFlag( formalName = "Minimum Occurrence", name = "min-occurs", defaultValue = "0", - typeAdapter = NonNegativeIntegerAdapter.class) + typeAdapter = NonNegativeIntegerAdapter.class + ) private BigInteger _minOccurs; @BoundFlag( @@ -79,8 +84,8 @@ public class FieldReference implements IBoundObject { name = "max-occurs", defaultValue = "1", typeAdapter = StringAdapter.class, - valueConstraints = @ValueConstraints( - matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$"))) + valueConstraints = @ValueConstraints(matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$")) + ) private String _maxOccurs; @BoundFlag( @@ -88,12 +93,8 @@ public class FieldReference implements IBoundObject { name = "in-xml", defaultValue = "WRAPPED", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "WRAPPED", - description = "Block contents of a markup-multiline field will be represented with a containing (wrapper) element in the XML."), - @AllowedValue(value = "UNWRAPPED", - description = "Block contents of a markup-multiline will be represented in the XML with no wrapper, making the field implicit. Among sibling fields in a given model, only one of them may be designated as UNWRAPPED."), - @AllowedValue(value = "WITH_WRAPPER", description = "Alias for WRAPPED.", deprecatedVersion = "0.9.0") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "WRAPPED", description = "Block contents of a markup-multiline field will be represented with a containing (wrapper) element in the XML."), @AllowedValue(value = "UNWRAPPED", description = "Block contents of a markup-multiline will be represented in the XML with no wrapper, making the field implicit. Among sibling fields in a given model, only one of them may be designated as UNWRAPPED."), @AllowedValue(value = "WITH_WRAPPER", description = "Alias for WRAPPED.", deprecatedVersion = "0.9.0")})) + ) private String _inXml; /** @@ -103,25 +104,27 @@ public class FieldReference implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; /** @@ -130,40 +133,38 @@ public class FieldReference implements IBoundObject { @BoundField( formalName = "Use Name", description = "Allows the name of the definition to be overridden.", - useName = "use-name") + useName = "use-name" + ) private UseName _useName; @BoundAssembly( formalName = "Group As", - useName = "group-as") + useName = "group-as" + ) private GroupingAs _groupAs; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FieldReference} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FieldReference} instance with no metadata. */ public FieldReference() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FieldReference} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FieldReference} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public FieldReference(IMetaschemaData data) { this.__metaschemaData = data; @@ -188,7 +189,7 @@ public String getRef() { * Set the global Field Reference. * * @param value - * the ref value to set + * the ref value to set */ public void setRef(@NonNull String value) { _ref = value; @@ -208,7 +209,7 @@ public BigInteger getIndex() { * Set the field Reference Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -228,7 +229,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -248,7 +249,7 @@ public String getDefault() { * Set the default Field Value. * * @param value - * the default value to set + * the default value to set */ public void setDefault(@Nullable String value) { _default = value; @@ -268,7 +269,7 @@ public BigInteger getMinOccurs() { * Set the minimum Occurrence. * * @param value - * the min-occurs value to set + * the min-occurs value to set */ public void setMinOccurs(@Nullable BigInteger value) { _minOccurs = value; @@ -288,7 +289,7 @@ public String getMaxOccurs() { * Set the maximum Occurrence. * * @param value - * the max-occurs value to set + * the max-occurs value to set */ public void setMaxOccurs(@Nullable String value) { _maxOccurs = value; @@ -308,7 +309,7 @@ public String getInXml() { * Set the field In XML. * * @param value - * the in-xml value to set + * the in-xml value to set */ public void setInXml(@Nullable String value) { _inXml = value; @@ -334,7 +335,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -344,8 +345,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -358,11 +358,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -385,7 +384,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -393,13 +392,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -407,15 +404,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -439,7 +433,7 @@ public UseName getUseName() { * Allows the name of the definition to be overridden. * * @param value - * the use-name value to set + * the use-name value to set */ public void setUseName(@Nullable UseName value) { _useName = value; @@ -459,7 +453,7 @@ public GroupingAs getGroupAs() { * Set the group As. * * @param value - * the group-as value to set + * the group-as value to set */ public void setGroupAs(@Nullable GroupingAs value) { _groupAs = value; @@ -469,8 +463,7 @@ public void setGroupAs(@Nullable GroupingAs value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -483,11 +476,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagAllowedValues.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagAllowedValues.java index 5fa995cc9..f264a3b4f 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagAllowedValues.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagAllowedValues.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -35,14 +34,16 @@ @MetaschemaAssembly( formalName = "Allowed Values Constraint", name = "flag-allowed-values", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class FlagAllowedValues implements IBoundObject, IConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -50,17 +51,8 @@ public class FlagAllowedValues implements IBoundObject, IConstraintBase { name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( @@ -68,14 +60,12 @@ public class FlagAllowedValues implements IBoundObject, IConstraintBase { name = "allow-other", defaultValue = "no", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "no", description = "Other value are not allowed."), - @AllowedValue(value = "yes", description = "Other values are allowed.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "no", description = "Other value are not allowed."), @AllowedValue(value = "yes", description = "Other values are allowed.")})) + ) private String _allowOther; /** - * Determines if the given enumerated values may be extended by other allowed - * value constraints. + * Determines if the given enumerated values may be extended by other allowed value constraints. */ @BoundFlag( formalName = "Allow Extension?", @@ -83,11 +73,8 @@ public class FlagAllowedValues implements IBoundObject, IConstraintBase { name = "extensible", defaultValue = "external", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { - @AllowedValue(value = "model", description = "Can be extended by constraints within the same module."), - @AllowedValue(value = "external", description = "Can be extended by external constraints."), - @AllowedValue(value = "none", description = "Cannot be extended.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "model", description = "Can be extended by constraints within the same module."), @AllowedValue(value = "external", description = "Can be extended by external constraints."), @AllowedValue(value = "none", description = "Cannot be extended.")})) + ) private String _extensible; /** @@ -97,25 +84,27 @@ public class FlagAllowedValues implements IBoundObject, IConstraintBase { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( @@ -123,35 +112,32 @@ public class FlagAllowedValues implements IBoundObject, IConstraintBase { useName = "enum", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "enums", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "enums", inJson = JsonGroupAsBehavior.LIST) + ) private List _enums; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagAllowedValues} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagAllowedValues} instance with no metadata. */ public FlagAllowedValues() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagAllowedValues} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagAllowedValues} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public FlagAllowedValues(IMetaschemaData data) { this.__metaschemaData = data; @@ -177,7 +163,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -198,7 +184,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -218,7 +204,7 @@ public String getAllowOther() { * Set the allow Non-Enumerated Values?. * * @param value - * the allow-other value to set + * the allow-other value to set */ public void setAllowOther(@Nullable String value) { _allowOther = value; @@ -228,8 +214,7 @@ public void setAllowOther(@Nullable String value) { * Get the allow Extension?. * *

- * Determines if the given enumerated values may be extended by other allowed - * value constraints. + * Determines if the given enumerated values may be extended by other allowed value constraints. * * @return the extensible value, or {@code null} if not set */ @@ -242,11 +227,10 @@ public String getExtensible() { * Set the allow Extension?. * *

- * Determines if the given enumerated values may be extended by other allowed - * value constraints. + * Determines if the given enumerated values may be extended by other allowed value constraints. * * @param value - * the extensible value to set + * the extensible value to set */ public void setExtensible(@Nullable String value) { _extensible = value; @@ -273,7 +257,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -283,8 +267,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -298,11 +281,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -326,7 +308,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -334,13 +316,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -348,15 +328,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -377,7 +354,7 @@ public List getEnums() { * Set the allowed Value Enumeration. * * @param value - * the enum value to set + * the enum value to set */ public void setEnums(@NonNull List value) { _enums = value; @@ -385,13 +362,11 @@ public void setEnums(@NonNull List value) { /** * Add a new {@link ConstraintValueEnum} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addEnum(ConstraintValueEnum item) { - ConstraintValueEnum value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ConstraintValueEnum value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_enums == null) { _enums = new LinkedList<>(); } @@ -399,15 +374,12 @@ public boolean addEnum(ConstraintValueEnum item) { } /** - * Remove the first matching {@link ConstraintValueEnum} item from the - * underlying collection. - * - * @param item - * the item to remove + * Remove the first matching {@link ConstraintValueEnum} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeEnum(ConstraintValueEnum item) { - ConstraintValueEnum value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ConstraintValueEnum value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _enums != null && _enums.remove(value); } @@ -415,8 +387,7 @@ public boolean removeEnum(ConstraintValueEnum item) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -430,11 +401,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagConstraints.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagConstraints.java index 2b093f54e..a1e3d4bc2 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagConstraints.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagConstraints.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -25,7 +24,8 @@ @MetaschemaAssembly( name = "flag-constraints", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class FlagConstraints implements IValueConstraintsBase { private final IMetaschemaData __metaschemaData; @@ -33,7 +33,8 @@ public class FlagConstraints implements IValueConstraintsBase { formalName = "Constraint Let Expression", useName = "let", maxOccurs = -1, - groupAs = @GroupAs(name = "lets", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "lets", inJson = JsonGroupAsBehavior.LIST) + ) private List _lets; @BoundChoiceGroup( @@ -41,35 +42,27 @@ public class FlagConstraints implements IValueConstraintsBase { maxOccurs = -1, groupAs = @GroupAs(name = "rules", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", - binding = FlagAllowedValues.class), - @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", - binding = FlagExpect.class), - @BoundGroupedAssembly(formalName = "Index Has Key Constraint", useName = "index-has-key", - binding = FlagIndexHasKey.class), - @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", - binding = FlagMatches.class), - @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", - binding = FlagReport.class) - }) + @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", binding = FlagAllowedValues.class), + @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", binding = FlagExpect.class), + @BoundGroupedAssembly(formalName = "Index Has Key Constraint", useName = "index-has-key", binding = FlagIndexHasKey.class), + @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", binding = FlagMatches.class), + @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", binding = FlagReport.class) + } + ) private List _rules; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagConstraints} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagConstraints} instance with no metadata. */ public FlagConstraints() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagConstraints} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagConstraints} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public FlagConstraints(IMetaschemaData data) { this.__metaschemaData = data; @@ -98,7 +91,7 @@ public List getLets() { * Set the constraint Let Expression. * * @param value - * the let value to set + * the let value to set */ public void setLets(@NonNull List value) { _lets = value; @@ -106,13 +99,11 @@ public void setLets(@NonNull List value) { /** * Add a new {@link ConstraintLetExpression} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addLet(ConstraintLetExpression item) { - ConstraintLetExpression value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ConstraintLetExpression value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_lets == null) { _lets = new LinkedList<>(); } @@ -120,15 +111,12 @@ public boolean addLet(ConstraintLetExpression item) { } /** - * Remove the first matching {@link ConstraintLetExpression} item from the - * underlying collection. - * - * @param item - * the item to remove + * Remove the first matching {@link ConstraintLetExpression} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeLet(ConstraintLetExpression item) { - ConstraintLetExpression value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ConstraintLetExpression value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _lets != null && _lets.remove(value); } @@ -156,7 +144,7 @@ public List getRules() { * Items in this collection must implement {@link IConstraintBase}. * * @param value - * the rules items to set + * the rules items to set */ public void setRules(@NonNull List value) { _rules = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagExpect.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagExpect.java index cd0097634..7a316ee96 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagExpect.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagExpect.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -35,14 +34,16 @@ @MetaschemaAssembly( formalName = "Expect Condition Constraint", name = "flag-expect", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class FlagExpect implements IBoundObject, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -50,24 +51,16 @@ public class FlagExpect implements IBoundObject, IConfigurableMessageConstraintB name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Expect Test Condition", name = "test", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _test; /** @@ -77,59 +70,58 @@ public class FlagExpect implements IBoundObject, IConfigurableMessageConstraintB formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagExpect} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagExpect} instance with no metadata. */ public FlagExpect() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagExpect} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagExpect} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public FlagExpect(IMetaschemaData data) { this.__metaschemaData = data; @@ -155,7 +147,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -176,7 +168,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -196,7 +188,7 @@ public String getTest() { * Set the expect Test Condition. * * @param value - * the test value to set + * the test value to set */ public void setTest(@NonNull String value) { _test = value; @@ -223,7 +215,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -233,8 +225,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -248,11 +239,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -276,7 +266,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -284,13 +274,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -298,15 +286,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -325,7 +310,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -335,8 +320,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -350,11 +334,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagIndexHasKey.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagIndexHasKey.java index c94fa04cc..09187f494 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagIndexHasKey.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagIndexHasKey.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -35,14 +34,16 @@ @MetaschemaAssembly( formalName = "Index Has Key Constraint", name = "flag-index-has-key", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class FlagIndexHasKey implements IBoundObject, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -50,24 +51,16 @@ public class FlagIndexHasKey implements IBoundObject, IConfigurableMessageConstr name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Index Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; /** @@ -77,25 +70,27 @@ public class FlagIndexHasKey implements IBoundObject, IConfigurableMessageConstr formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundAssembly( @@ -103,41 +98,39 @@ public class FlagIndexHasKey implements IBoundObject, IConfigurableMessageConstr useName = "key-field", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "key-fields", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "key-fields", inJson = JsonGroupAsBehavior.LIST) + ) private List _keyFields; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagIndexHasKey} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagIndexHasKey} instance with no metadata. */ public FlagIndexHasKey() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagIndexHasKey} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagIndexHasKey} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public FlagIndexHasKey(IMetaschemaData data) { this.__metaschemaData = data; @@ -163,7 +156,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -184,7 +177,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -204,7 +197,7 @@ public String getName() { * Set the index Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -231,7 +224,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -241,8 +234,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -256,11 +248,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -284,7 +275,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -292,13 +283,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -306,15 +295,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -335,7 +321,7 @@ public List getKeyFields() { * Set the key Constraint Field. * * @param value - * the key-field value to set + * the key-field value to set */ public void setKeyFields(@NonNull List value) { _keyFields = value; @@ -343,13 +329,11 @@ public void setKeyFields(@NonNull List value) { /** * Add a new {@link KeyConstraintField} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addKeyField(KeyConstraintField item) { - KeyConstraintField value = ObjectUtils.requireNonNull(item, "item cannot be null"); + KeyConstraintField value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_keyFields == null) { _keyFields = new LinkedList<>(); } @@ -357,15 +341,12 @@ public boolean addKeyField(KeyConstraintField item) { } /** - * Remove the first matching {@link KeyConstraintField} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link KeyConstraintField} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeKeyField(KeyConstraintField item) { - KeyConstraintField value = ObjectUtils.requireNonNull(item, "item cannot be null"); + KeyConstraintField value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _keyFields != null && _keyFields.remove(value); } @@ -384,7 +365,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -394,8 +375,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -409,11 +389,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagMatches.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagMatches.java index 0118f7bef..7cb3b9963 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagMatches.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagMatches.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -35,14 +34,16 @@ @MetaschemaAssembly( formalName = "Value Matches Constraint", name = "flag-matches", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class FlagMatches implements IBoundObject, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -50,89 +51,23 @@ public class FlagMatches implements IBoundObject, IConfigurableMessageConstraint name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Matches Regular Expression", name = "regex", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _regex; @BoundFlag( formalName = "Matches Data Type", name = "datatype", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - allowOthers = true, - values = { @AllowedValue(value = "base64", - description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), - @AllowedValue(value = "boolean", - description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), - @AllowedValue(value = "date", - description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), - @AllowedValue(value = "date-time", - description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), - @AllowedValue(value = "date-time-with-timezone", - description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), - @AllowedValue(value = "date-with-timezone", - description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), - @AllowedValue(value = "day-time-duration", - description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), - @AllowedValue(value = "decimal", - description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), - @AllowedValue(value = "email-address", - description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), - @AllowedValue(value = "hostname", - description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), - @AllowedValue(value = "integer", - description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), - @AllowedValue(value = "ip-v4-address", - description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), - @AllowedValue(value = "ip-v6-address", - description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), - @AllowedValue(value = "non-negative-integer", - description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), - @AllowedValue(value = "positive-integer", - description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), - @AllowedValue(value = "string", - description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), - @AllowedValue(value = "token", - description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), - @AllowedValue(value = "uri", - description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), - @AllowedValue(value = "uri-reference", - description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), - @AllowedValue(value = "uuid", - description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), - @AllowedValue(value = "base64Binary", - description = "An old name which is deprecated for use in favor of the 'base64' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime", - description = "An old name which is deprecated for use in favor of the 'date-time' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime-with-timezone", - description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "email", - description = "An old name which is deprecated for use in favor of the 'email-address' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "nonNegativeInteger", - description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "positiveInteger", - description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", - deprecatedVersion = "1.0.0") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, allowOthers = true, values = {@AllowedValue(value = "base64", description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), @AllowedValue(value = "boolean", description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), @AllowedValue(value = "date", description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), @AllowedValue(value = "date-time", description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), @AllowedValue(value = "date-time-with-timezone", description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), @AllowedValue(value = "date-with-timezone", description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), @AllowedValue(value = "day-time-duration", description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), @AllowedValue(value = "decimal", description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), @AllowedValue(value = "email-address", description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), @AllowedValue(value = "hostname", description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), @AllowedValue(value = "integer", description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), @AllowedValue(value = "ip-v4-address", description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), @AllowedValue(value = "ip-v6-address", description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), @AllowedValue(value = "non-negative-integer", description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), @AllowedValue(value = "positive-integer", description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), @AllowedValue(value = "string", description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), @AllowedValue(value = "token", description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), @AllowedValue(value = "uri", description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), @AllowedValue(value = "uri-reference", description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), @AllowedValue(value = "uuid", description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), @AllowedValue(value = "base64Binary", description = "An old name which is deprecated for use in favor of the 'base64' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime", description = "An old name which is deprecated for use in favor of the 'date-time' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime-with-timezone", description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "email", description = "An old name which is deprecated for use in favor of the 'email-address' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "nonNegativeInteger", description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "positiveInteger", description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", deprecatedVersion = "1.0.0")})) + ) private String _datatype; /** @@ -142,59 +77,58 @@ public class FlagMatches implements IBoundObject, IConfigurableMessageConstraint formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagMatches} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagMatches} instance with no metadata. */ public FlagMatches() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagMatches} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagMatches} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public FlagMatches(IMetaschemaData data) { this.__metaschemaData = data; @@ -220,7 +154,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -241,7 +175,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -261,7 +195,7 @@ public String getRegex() { * Set the matches Regular Expression. * * @param value - * the regex value to set + * the regex value to set */ public void setRegex(@Nullable String value) { _regex = value; @@ -281,7 +215,7 @@ public String getDatatype() { * Set the matches Data Type. * * @param value - * the datatype value to set + * the datatype value to set */ public void setDatatype(@Nullable String value) { _datatype = value; @@ -308,7 +242,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -318,8 +252,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -333,11 +266,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -361,7 +293,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -369,13 +301,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -383,15 +313,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -410,7 +337,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -420,8 +347,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -435,11 +361,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagReference.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagReference.java index d35948749..5a4ccc3d2 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagReference.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagReference.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -36,7 +35,8 @@ @MetaschemaAssembly( formalName = "Flag Reference", name = "flag-reference", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class FlagReference implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -44,25 +44,29 @@ public class FlagReference implements IBoundObject { formalName = "Global Flag Reference", name = "ref", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _ref; @BoundFlag( formalName = "Flag Reference Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFlag( formalName = "Default Flag Value", name = "default", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _default; @BoundFlag( @@ -70,9 +74,8 @@ public class FlagReference implements IBoundObject { name = "required", defaultValue = "no", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "yes", description = "The flag is required."), - @AllowedValue(value = "no", description = "The flag is optional.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "yes", description = "The flag is required."), @AllowedValue(value = "no", description = "The flag is optional.")})) + ) private String _required; /** @@ -82,25 +85,27 @@ public class FlagReference implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; /** @@ -109,35 +114,32 @@ public class FlagReference implements IBoundObject { @BoundField( formalName = "Use Name", description = "Allows the name of the definition to be overridden.", - useName = "use-name") + useName = "use-name" + ) private UseName _useName; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagReference} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagReference} instance with no metadata. */ public FlagReference() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagReference} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagReference} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public FlagReference(IMetaschemaData data) { this.__metaschemaData = data; @@ -162,7 +164,7 @@ public String getRef() { * Set the global Flag Reference. * * @param value - * the ref value to set + * the ref value to set */ public void setRef(@NonNull String value) { _ref = value; @@ -182,7 +184,7 @@ public BigInteger getIndex() { * Set the flag Reference Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -202,7 +204,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -222,7 +224,7 @@ public String getDefault() { * Set the default Flag Value. * * @param value - * the default value to set + * the default value to set */ public void setDefault(@Nullable String value) { _default = value; @@ -242,7 +244,7 @@ public String getRequired() { * Set the is Flag Required?. * * @param value - * the required value to set + * the required value to set */ public void setRequired(@Nullable String value) { _required = value; @@ -268,7 +270,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -278,8 +280,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -292,11 +293,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -319,7 +319,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -327,13 +327,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -341,15 +339,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -373,7 +368,7 @@ public UseName getUseName() { * Allows the name of the definition to be overridden. * * @param value - * the use-name value to set + * the use-name value to set */ public void setUseName(@Nullable UseName value) { _useName = value; @@ -383,8 +378,7 @@ public void setUseName(@Nullable UseName value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -397,11 +391,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagReport.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagReport.java index f0461b8b0..05435f12f 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagReport.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/FlagReport.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -35,14 +34,16 @@ @MetaschemaAssembly( formalName = "Report Condition Constraint", name = "flag-report", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class FlagReport implements IBoundObject, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -50,24 +51,16 @@ public class FlagReport implements IBoundObject, IConfigurableMessageConstraintB name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Report Test Condition", name = "test", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _test; /** @@ -77,59 +70,58 @@ public class FlagReport implements IBoundObject, IConfigurableMessageConstraintB formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagReport} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagReport} instance with no metadata. */ public FlagReport() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagReport} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.FlagReport} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public FlagReport(IMetaschemaData data) { this.__metaschemaData = data; @@ -155,7 +147,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -176,7 +168,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -196,7 +188,7 @@ public String getTest() { * Set the report Test Condition. * * @param value - * the test value to set + * the test value to set */ public void setTest(@NonNull String value) { _test = value; @@ -223,7 +215,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -233,8 +225,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -248,11 +239,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -276,7 +266,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -284,13 +274,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -298,15 +286,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -325,7 +310,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -335,8 +320,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -350,11 +334,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/GroupingAs.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/GroupingAs.java index 54f9ca61e..1c7d444e8 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/GroupingAs.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/GroupingAs.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -25,7 +24,8 @@ @MetaschemaAssembly( formalName = "Group As", name = "group-as", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class GroupingAs implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -33,7 +33,8 @@ public class GroupingAs implements IBoundObject { formalName = "Grouping Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( @@ -41,12 +42,8 @@ public class GroupingAs implements IBoundObject { name = "in-json", defaultValue = "SINGLETON_OR_ARRAY", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "ARRAY", description = "Always use an array."), - @AllowedValue(value = "SINGLETON_OR_ARRAY", - description = "Produce a singleton for a single member or an array for multiple members."), - @AllowedValue(value = "BY_KEY", - description = "For any group of one or more members, produce an object with properties for each member, using a designated flag for their property name values, which must be distinct.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "ARRAY", description = "Always use an array."), @AllowedValue(value = "SINGLETON_OR_ARRAY", description = "Produce a singleton for a single member or an array for multiple members."), @AllowedValue(value = "BY_KEY", description = "For any group of one or more members, produce an object with properties for each member, using a designated flag for their property name values, which must be distinct.")})) + ) private String _inJson; @BoundFlag( @@ -54,27 +51,22 @@ public class GroupingAs implements IBoundObject { name = "in-xml", defaultValue = "UNGROUPED", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "GROUPED", description = "Use a wrapper element."), - @AllowedValue(value = "UNGROUPED", description = "Do not use a wrapper element.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "GROUPED", description = "Use a wrapper element."), @AllowedValue(value = "UNGROUPED", description = "Do not use a wrapper element.")})) + ) private String _inXml; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.GroupingAs} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.GroupingAs} instance with no metadata. */ public GroupingAs() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.GroupingAs} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.GroupingAs} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public GroupingAs(IMetaschemaData data) { this.__metaschemaData = data; @@ -99,7 +91,7 @@ public String getName() { * Set the grouping Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -119,7 +111,7 @@ public String getInJson() { * Set the in JSON Grouping Syntax. * * @param value - * the in-json value to set + * the in-json value to set */ public void setInJson(@Nullable String value) { _inJson = value; @@ -139,7 +131,7 @@ public String getInXml() { * Set the in XML Grouping Syntax. * * @param value - * the in-xml value to set + * the in-xml value to set */ public void setInXml(@Nullable String value) { _inXml = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineAssembly.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineAssembly.java index c25027fb5..33d8fda17 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineAssembly.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineAssembly.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -38,7 +37,8 @@ @MetaschemaAssembly( formalName = "Inline Assembly Definition", name = "inline-define-assembly", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class InlineDefineAssembly implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -46,26 +46,30 @@ public class InlineDefineAssembly implements IBoundObject { formalName = "Inline Assembly Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Inline Assembly Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFlag( formalName = "Minimum Occurrence", name = "min-occurs", defaultValue = "0", - typeAdapter = NonNegativeIntegerAdapter.class) + typeAdapter = NonNegativeIntegerAdapter.class + ) private BigInteger _minOccurs; @BoundFlag( @@ -73,8 +77,8 @@ public class InlineDefineAssembly implements IBoundObject { name = "max-occurs", defaultValue = "1", typeAdapter = StringAdapter.class, - valueConstraints = @ValueConstraints( - matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$"))) + valueConstraints = @ValueConstraints(matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$")) + ) private String _maxOccurs; /** @@ -84,95 +88,95 @@ public class InlineDefineAssembly implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; /** - * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. */ @BoundAssembly( formalName = "JSON Key", description = "Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share `json-key` values.", - useName = "json-key") + useName = "json-key" + ) private JsonKey _jsonKey; @BoundAssembly( formalName = "Group As", - useName = "group-as") + useName = "group-as" + ) private GroupingAs _groupAs; @BoundChoiceGroup( maxOccurs = -1, groupAs = @GroupAs(name = "flags", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", - discriminatorValue = "flag", binding = InlineDefineFlag.class), - @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", - binding = FlagReference.class) - }) + @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", discriminatorValue = "flag", binding = InlineDefineFlag.class), + @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", binding = FlagReference.class) + } + ) private List _flags; @BoundAssembly( - useName = "model") + useName = "model" + ) private AssemblyModel _model; @BoundAssembly( - useName = "constraint") + useName = "constraint" + ) private AssemblyConstraints _constraint; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; @BoundAssembly( formalName = "Example", useName = "example", maxOccurs = -1, - groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST) + ) private List _examples; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineAssembly} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineAssembly} instance with no metadata. */ public InlineDefineAssembly() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineAssembly} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineAssembly} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public InlineDefineAssembly(IMetaschemaData data) { this.__metaschemaData = data; @@ -197,7 +201,7 @@ public String getName() { * Set the inline Assembly Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -217,7 +221,7 @@ public BigInteger getIndex() { * Set the inline Assembly Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -237,7 +241,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -257,7 +261,7 @@ public BigInteger getMinOccurs() { * Set the minimum Occurrence. * * @param value - * the min-occurs value to set + * the min-occurs value to set */ public void setMinOccurs(@Nullable BigInteger value) { _minOccurs = value; @@ -277,7 +281,7 @@ public String getMaxOccurs() { * Set the maximum Occurrence. * * @param value - * the max-occurs value to set + * the max-occurs value to set */ public void setMaxOccurs(@Nullable String value) { _maxOccurs = value; @@ -303,7 +307,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -313,8 +317,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -327,11 +330,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -354,7 +356,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -362,13 +364,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -376,15 +376,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -392,9 +389,7 @@ public boolean removeProp(Property item) { * Get the jSON Key. * *

- * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. * * @return the json-key value, or {@code null} if not set */ @@ -407,12 +402,10 @@ public JsonKey getJsonKey() { * Set the jSON Key. * *

- * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. * * @param value - * the json-key value to set + * the json-key value to set */ public void setJsonKey(@Nullable JsonKey value) { _jsonKey = value; @@ -432,7 +425,7 @@ public GroupingAs getGroupAs() { * Set the group As. * * @param value - * the group-as value to set + * the group-as value to set */ public void setGroupAs(@Nullable GroupingAs value) { _groupAs = value; @@ -455,7 +448,7 @@ public List getFlags() { * Set the {@code flags} choice group items. * * @param value - * the flags items to set + * the flags items to set */ public void setFlags(@NonNull List value) { _flags = value; @@ -475,7 +468,7 @@ public AssemblyModel getModel() { * Set the {@code model} property. * * @param value - * the model value to set + * the model value to set */ public void setModel(@Nullable AssemblyModel value) { _model = value; @@ -495,7 +488,7 @@ public AssemblyConstraints getConstraint() { * Set the {@code constraint} property. * * @param value - * the constraint value to set + * the constraint value to set */ public void setConstraint(@Nullable AssemblyConstraints value) { _constraint = value; @@ -505,8 +498,7 @@ public void setConstraint(@Nullable AssemblyConstraints value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -519,11 +511,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -546,7 +537,7 @@ public List getExamples() { * Set the example. * * @param value - * the example value to set + * the example value to set */ public void setExamples(@NonNull List value) { _examples = value; @@ -554,13 +545,11 @@ public void setExamples(@NonNull List value) { /** * Add a new {@link Example} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_examples == null) { _examples = new LinkedList<>(); } @@ -568,15 +557,12 @@ public boolean addExample(Example item) { } /** - * Remove the first matching {@link Example} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Example} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _examples != null && _examples.remove(value); } diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineField.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineField.java index 3f5ca9375..5e0c85e35 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineField.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineField.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -41,7 +40,8 @@ @MetaschemaAssembly( formalName = "Inline Field Definition", name = "inline-define-field", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class InlineDefineField implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -49,19 +49,22 @@ public class InlineDefineField implements IBoundObject { formalName = "Inline Field Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Inline Field Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFlag( @@ -69,83 +72,23 @@ public class InlineDefineField implements IBoundObject { name = "as-type", defaultValue = "string", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - allowOthers = true, - values = { @AllowedValue(value = "markup-line", - description = "The [markup-line](https://framework.metaschema.dev/specification/datatypes/#markup-line) data type."), - @AllowedValue(value = "markup-multiline", - description = "The [markup-multiline](https://framework.metaschema.dev/specification/datatypes/#markup-multiline) data type."), - @AllowedValue(value = "base64", - description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), - @AllowedValue(value = "boolean", - description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), - @AllowedValue(value = "date", - description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), - @AllowedValue(value = "date-time", - description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), - @AllowedValue(value = "date-time-with-timezone", - description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), - @AllowedValue(value = "date-with-timezone", - description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), - @AllowedValue(value = "day-time-duration", - description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), - @AllowedValue(value = "decimal", - description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), - @AllowedValue(value = "email-address", - description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), - @AllowedValue(value = "hostname", - description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), - @AllowedValue(value = "integer", - description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), - @AllowedValue(value = "ip-v4-address", - description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), - @AllowedValue(value = "ip-v6-address", - description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), - @AllowedValue(value = "non-negative-integer", - description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), - @AllowedValue(value = "positive-integer", - description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), - @AllowedValue(value = "string", - description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), - @AllowedValue(value = "token", - description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), - @AllowedValue(value = "uri", - description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), - @AllowedValue(value = "uri-reference", - description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), - @AllowedValue(value = "uuid", - description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), - @AllowedValue(value = "base64Binary", - description = "An old name which is deprecated for use in favor of the 'base64' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime", - description = "An old name which is deprecated for use in favor of the 'date-time' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime-with-timezone", - description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "email", - description = "An old name which is deprecated for use in favor of the 'email-address' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "nonNegativeInteger", - description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "positiveInteger", - description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", - deprecatedVersion = "1.0.0") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, allowOthers = true, values = {@AllowedValue(value = "markup-line", description = "The [markup-line](https://framework.metaschema.dev/specification/datatypes/#markup-line) data type."), @AllowedValue(value = "markup-multiline", description = "The [markup-multiline](https://framework.metaschema.dev/specification/datatypes/#markup-multiline) data type."), @AllowedValue(value = "base64", description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), @AllowedValue(value = "boolean", description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), @AllowedValue(value = "date", description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), @AllowedValue(value = "date-time", description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), @AllowedValue(value = "date-time-with-timezone", description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), @AllowedValue(value = "date-with-timezone", description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), @AllowedValue(value = "day-time-duration", description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), @AllowedValue(value = "decimal", description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), @AllowedValue(value = "email-address", description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), @AllowedValue(value = "hostname", description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), @AllowedValue(value = "integer", description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), @AllowedValue(value = "ip-v4-address", description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), @AllowedValue(value = "ip-v6-address", description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), @AllowedValue(value = "non-negative-integer", description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), @AllowedValue(value = "positive-integer", description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), @AllowedValue(value = "string", description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), @AllowedValue(value = "token", description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), @AllowedValue(value = "uri", description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), @AllowedValue(value = "uri-reference", description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), @AllowedValue(value = "uuid", description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), @AllowedValue(value = "base64Binary", description = "An old name which is deprecated for use in favor of the 'base64' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime", description = "An old name which is deprecated for use in favor of the 'date-time' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime-with-timezone", description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "email", description = "An old name which is deprecated for use in favor of the 'email-address' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "nonNegativeInteger", description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "positiveInteger", description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", deprecatedVersion = "1.0.0")})) + ) private String _asType; @BoundFlag( formalName = "Default Field Value", name = "default", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _default; @BoundFlag( formalName = "Minimum Occurrence", name = "min-occurs", defaultValue = "0", - typeAdapter = NonNegativeIntegerAdapter.class) + typeAdapter = NonNegativeIntegerAdapter.class + ) private BigInteger _minOccurs; @BoundFlag( @@ -153,8 +96,8 @@ public class InlineDefineField implements IBoundObject { name = "max-occurs", defaultValue = "1", typeAdapter = StringAdapter.class, - valueConstraints = @ValueConstraints( - matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$"))) + valueConstraints = @ValueConstraints(matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$")) + ) private String _maxOccurs; @BoundFlag( @@ -162,12 +105,8 @@ public class InlineDefineField implements IBoundObject { name = "in-xml", defaultValue = "WRAPPED", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "WRAPPED", - description = "Block contents of a markup-multiline field will be represented with a containing (wrapper) element in the XML."), - @AllowedValue(value = "UNWRAPPED", - description = "Block contents of a markup-multiline will be represented in the XML with no wrapper, making the field implicit. Among sibling fields in a given model, only one of them may be designated as UNWRAPPED."), - @AllowedValue(value = "WITH_WRAPPER", description = "Alias for WRAPPED.", deprecatedVersion = "0.9.0") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "WRAPPED", description = "Block contents of a markup-multiline field will be represented with a containing (wrapper) element in the XML."), @AllowedValue(value = "UNWRAPPED", description = "Block contents of a markup-multiline will be represented in the XML with no wrapper, making the field implicit. Among sibling fields in a given model, only one of them may be designated as UNWRAPPED."), @AllowedValue(value = "WITH_WRAPPER", description = "Alias for WRAPPED.", deprecatedVersion = "0.9.0")})) + ) private String _inXml; /** @@ -177,106 +116,109 @@ public class InlineDefineField implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; /** - * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. */ @BoundAssembly( formalName = "JSON Key", description = "Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share `json-key` values.", - useName = "json-key") + useName = "json-key" + ) private JsonKey _jsonKey; @BoundField( formalName = "Field Value JSON Property Name", useName = "json-value-key", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) @BoundChoice( - choiceId = "choice-1") + choiceId = "choice-1" + ) private String _jsonValueKey; @BoundAssembly( formalName = "Flag Used as the Field Value's JSON Property Name", - useName = "json-value-key-flag") + useName = "json-value-key-flag" + ) @BoundChoice( - choiceId = "choice-1") + choiceId = "choice-1" + ) private JsonValueKeyFlag _jsonValueKeyFlag; @BoundAssembly( formalName = "Group As", - useName = "group-as") + useName = "group-as" + ) private GroupingAs _groupAs; @BoundChoiceGroup( maxOccurs = -1, groupAs = @GroupAs(name = "flags", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", - discriminatorValue = "flag", binding = InlineDefineFlag.class), - @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", - binding = FlagReference.class) - }) + @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", discriminatorValue = "flag", binding = InlineDefineFlag.class), + @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", binding = FlagReference.class) + } + ) private List _flags; @BoundAssembly( - useName = "constraint") + useName = "constraint" + ) private FieldConstraints _constraint; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; @BoundAssembly( formalName = "Example", useName = "example", maxOccurs = -1, - groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST) + ) private List _examples; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineField} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineField} instance with no metadata. */ public InlineDefineField() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineField} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineField} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public InlineDefineField(IMetaschemaData data) { this.__metaschemaData = data; @@ -301,7 +243,7 @@ public String getName() { * Set the inline Field Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -321,7 +263,7 @@ public BigInteger getIndex() { * Set the inline Field Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -341,7 +283,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -361,7 +303,7 @@ public String getAsType() { * Set the field Value Data Type. * * @param value - * the as-type value to set + * the as-type value to set */ public void setAsType(@Nullable String value) { _asType = value; @@ -381,7 +323,7 @@ public String getDefault() { * Set the default Field Value. * * @param value - * the default value to set + * the default value to set */ public void setDefault(@Nullable String value) { _default = value; @@ -401,7 +343,7 @@ public BigInteger getMinOccurs() { * Set the minimum Occurrence. * * @param value - * the min-occurs value to set + * the min-occurs value to set */ public void setMinOccurs(@Nullable BigInteger value) { _minOccurs = value; @@ -421,7 +363,7 @@ public String getMaxOccurs() { * Set the maximum Occurrence. * * @param value - * the max-occurs value to set + * the max-occurs value to set */ public void setMaxOccurs(@Nullable String value) { _maxOccurs = value; @@ -441,7 +383,7 @@ public String getInXml() { * Set the field In XML. * * @param value - * the in-xml value to set + * the in-xml value to set */ public void setInXml(@Nullable String value) { _inXml = value; @@ -467,7 +409,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -477,8 +419,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -491,11 +432,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -518,7 +458,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -526,13 +466,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -540,15 +478,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -556,9 +491,7 @@ public boolean removeProp(Property item) { * Get the jSON Key. * *

- * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. * * @return the json-key value, or {@code null} if not set */ @@ -571,12 +504,10 @@ public JsonKey getJsonKey() { * Set the jSON Key. * *

- * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. * * @param value - * the json-key value to set + * the json-key value to set */ public void setJsonKey(@Nullable JsonKey value) { _jsonKey = value; @@ -596,7 +527,7 @@ public String getJsonValueKey() { * Set the field Value JSON Property Name. * * @param value - * the json-value-key value to set + * the json-value-key value to set */ public void setJsonValueKey(@Nullable String value) { _jsonValueKey = value; @@ -616,7 +547,7 @@ public JsonValueKeyFlag getJsonValueKeyFlag() { * Set the flag Used as the Field Value's JSON Property Name. * * @param value - * the json-value-key-flag value to set + * the json-value-key-flag value to set */ public void setJsonValueKeyFlag(@Nullable JsonValueKeyFlag value) { _jsonValueKeyFlag = value; @@ -636,7 +567,7 @@ public GroupingAs getGroupAs() { * Set the group As. * * @param value - * the group-as value to set + * the group-as value to set */ public void setGroupAs(@Nullable GroupingAs value) { _groupAs = value; @@ -659,7 +590,7 @@ public List getFlags() { * Set the {@code flags} choice group items. * * @param value - * the flags items to set + * the flags items to set */ public void setFlags(@NonNull List value) { _flags = value; @@ -679,7 +610,7 @@ public FieldConstraints getConstraint() { * Set the {@code constraint} property. * * @param value - * the constraint value to set + * the constraint value to set */ public void setConstraint(@Nullable FieldConstraints value) { _constraint = value; @@ -689,8 +620,7 @@ public void setConstraint(@Nullable FieldConstraints value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -703,11 +633,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -730,7 +659,7 @@ public List getExamples() { * Set the example. * * @param value - * the example value to set + * the example value to set */ public void setExamples(@NonNull List value) { _examples = value; @@ -738,13 +667,11 @@ public void setExamples(@NonNull List value) { /** * Add a new {@link Example} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_examples == null) { _examples = new LinkedList<>(); } @@ -752,15 +679,12 @@ public boolean addExample(Example item) { } /** - * Remove the first matching {@link Example} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Example} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _examples != null && _examples.remove(value); } diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineFlag.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineFlag.java index 38cfba427..dd8c13fe2 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineFlag.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/InlineDefineFlag.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -36,7 +35,8 @@ @MetaschemaAssembly( formalName = "Inline Flag Definition", name = "inline-define-flag", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class InlineDefineFlag implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -44,19 +44,22 @@ public class InlineDefineFlag implements IBoundObject { formalName = "Inline Flag Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Inline Flag Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFlag( @@ -64,72 +67,15 @@ public class InlineDefineFlag implements IBoundObject { name = "as-type", defaultValue = "string", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - allowOthers = true, - values = { @AllowedValue(value = "base64", - description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), - @AllowedValue(value = "boolean", - description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), - @AllowedValue(value = "date", - description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), - @AllowedValue(value = "date-time", - description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), - @AllowedValue(value = "date-time-with-timezone", - description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), - @AllowedValue(value = "date-with-timezone", - description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), - @AllowedValue(value = "day-time-duration", - description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), - @AllowedValue(value = "decimal", - description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), - @AllowedValue(value = "email-address", - description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), - @AllowedValue(value = "hostname", - description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), - @AllowedValue(value = "integer", - description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), - @AllowedValue(value = "ip-v4-address", - description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), - @AllowedValue(value = "ip-v6-address", - description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), - @AllowedValue(value = "non-negative-integer", - description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), - @AllowedValue(value = "positive-integer", - description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), - @AllowedValue(value = "string", - description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), - @AllowedValue(value = "token", - description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), - @AllowedValue(value = "uri", - description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), - @AllowedValue(value = "uri-reference", - description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), - @AllowedValue(value = "uuid", - description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), - @AllowedValue(value = "base64Binary", - description = "An old name which is deprecated for use in favor of the 'base64' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime", - description = "An old name which is deprecated for use in favor of the 'date-time' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime-with-timezone", - description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "email", - description = "An old name which is deprecated for use in favor of the 'email-address' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "nonNegativeInteger", - description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "positiveInteger", - description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", - deprecatedVersion = "1.0.0") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, allowOthers = true, values = {@AllowedValue(value = "base64", description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), @AllowedValue(value = "boolean", description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), @AllowedValue(value = "date", description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), @AllowedValue(value = "date-time", description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), @AllowedValue(value = "date-time-with-timezone", description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), @AllowedValue(value = "date-with-timezone", description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), @AllowedValue(value = "day-time-duration", description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), @AllowedValue(value = "decimal", description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), @AllowedValue(value = "email-address", description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), @AllowedValue(value = "hostname", description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), @AllowedValue(value = "integer", description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), @AllowedValue(value = "ip-v4-address", description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), @AllowedValue(value = "ip-v6-address", description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), @AllowedValue(value = "non-negative-integer", description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), @AllowedValue(value = "positive-integer", description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), @AllowedValue(value = "string", description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), @AllowedValue(value = "token", description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), @AllowedValue(value = "uri", description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), @AllowedValue(value = "uri-reference", description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), @AllowedValue(value = "uuid", description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), @AllowedValue(value = "base64Binary", description = "An old name which is deprecated for use in favor of the 'base64' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime", description = "An old name which is deprecated for use in favor of the 'date-time' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime-with-timezone", description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "email", description = "An old name which is deprecated for use in favor of the 'email-address' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "nonNegativeInteger", description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "positiveInteger", description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", deprecatedVersion = "1.0.0")})) + ) private String _asType; @BoundFlag( formalName = "Default Flag Value", name = "default", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _default; @BoundFlag( @@ -137,9 +83,8 @@ public class InlineDefineFlag implements IBoundObject { name = "required", defaultValue = "no", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "yes", description = "The flag is required."), - @AllowedValue(value = "no", description = "The flag is optional.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "yes", description = "The flag is required."), @AllowedValue(value = "no", description = "The flag is optional.")})) + ) private String _required; /** @@ -149,64 +94,64 @@ public class InlineDefineFlag implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundAssembly( - useName = "constraint") + useName = "constraint" + ) private FlagConstraints _constraint; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; @BoundAssembly( formalName = "Example", useName = "example", maxOccurs = -1, - groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST) + ) private List _examples; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineFlag} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineFlag} instance with no metadata. */ public InlineDefineFlag() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineFlag} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.InlineDefineFlag} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public InlineDefineFlag(IMetaschemaData data) { this.__metaschemaData = data; @@ -231,7 +176,7 @@ public String getName() { * Set the inline Flag Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -251,7 +196,7 @@ public BigInteger getIndex() { * Set the inline Flag Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -271,7 +216,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -291,7 +236,7 @@ public String getAsType() { * Set the flag Value Data Type. * * @param value - * the as-type value to set + * the as-type value to set */ public void setAsType(@Nullable String value) { _asType = value; @@ -311,7 +256,7 @@ public String getDefault() { * Set the default Flag Value. * * @param value - * the default value to set + * the default value to set */ public void setDefault(@Nullable String value) { _default = value; @@ -331,7 +276,7 @@ public String getRequired() { * Set the is Flag Required?. * * @param value - * the required value to set + * the required value to set */ public void setRequired(@Nullable String value) { _required = value; @@ -357,7 +302,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -367,8 +312,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -381,11 +325,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -408,7 +351,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -416,13 +359,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -430,15 +371,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -456,7 +394,7 @@ public FlagConstraints getConstraint() { * Set the {@code constraint} property. * * @param value - * the constraint value to set + * the constraint value to set */ public void setConstraint(@Nullable FlagConstraints value) { _constraint = value; @@ -466,8 +404,7 @@ public void setConstraint(@Nullable FlagConstraints value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -480,11 +417,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -507,7 +443,7 @@ public List getExamples() { * Set the example. * * @param value - * the example value to set + * the example value to set */ public void setExamples(@NonNull List value) { _examples = value; @@ -515,13 +451,11 @@ public void setExamples(@NonNull List value) { /** * Add a new {@link Example} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_examples == null) { _examples = new LinkedList<>(); } @@ -529,15 +463,12 @@ public boolean addExample(Example item) { } /** - * Remove the first matching {@link Example} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Example} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _examples != null && _examples.remove(value); } diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/JsonKey.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/JsonKey.java index 1e2ffc972..a8063e4ce 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/JsonKey.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/JsonKey.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -18,15 +17,14 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. */ @MetaschemaAssembly( formalName = "JSON Key", description = "Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share `json-key` values.", name = "json-key", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class JsonKey implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -38,25 +36,22 @@ public class JsonKey implements IBoundObject { description = "References the flag that will serve as the JSON key.", name = "flag-ref", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _flagRef; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.JsonKey} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.JsonKey} instance with no metadata. */ public JsonKey() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.JsonKey} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.JsonKey} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public JsonKey(IMetaschemaData data) { this.__metaschemaData = data; @@ -87,7 +82,7 @@ public String getFlagRef() { * References the flag that will serve as the JSON key. * * @param value - * the flag-ref value to set + * the flag-ref value to set */ public void setFlagRef(@NonNull String value) { _flagRef = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/JsonValueKeyFlag.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/JsonValueKeyFlag.java index 01ed9312b..27ebc7f7c 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/JsonValueKeyFlag.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/JsonValueKeyFlag.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -20,7 +19,8 @@ @MetaschemaAssembly( formalName = "Flag Used as the Field Value's JSON Property Name", name = "json-value-key-flag", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class JsonValueKeyFlag implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -28,25 +28,22 @@ public class JsonValueKeyFlag implements IBoundObject { formalName = "Flag Reference", name = "flag-ref", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _flagRef; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.JsonValueKeyFlag} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.JsonValueKeyFlag} instance with no metadata. */ public JsonValueKeyFlag() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.JsonValueKeyFlag} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.JsonValueKeyFlag} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public JsonValueKeyFlag(IMetaschemaData data) { this.__metaschemaData = data; @@ -71,7 +68,7 @@ public String getFlagRef() { * Set the flag Reference. * * @param value - * the flag-ref value to set + * the flag-ref value to set */ public void setFlagRef(@NonNull String value) { _flagRef = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/KeyConstraintField.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/KeyConstraintField.java index e49f25814..ca32e7744 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/KeyConstraintField.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/KeyConstraintField.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -22,7 +21,8 @@ @MetaschemaAssembly( formalName = "Key Constraint", name = "key-constraint-field", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class KeyConstraintField implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -30,41 +30,39 @@ public class KeyConstraintField implements IBoundObject { formalName = "Key Field Value Target", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; @BoundFlag( formalName = "Key Field Value Pattern", name = "pattern", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _pattern; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.KeyConstraintField} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.KeyConstraintField} instance with no metadata. */ public KeyConstraintField() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.KeyConstraintField} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.KeyConstraintField} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public KeyConstraintField(IMetaschemaData data) { this.__metaschemaData = data; @@ -89,7 +87,7 @@ public String getTarget() { * Set the key Field Value Target. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -109,7 +107,7 @@ public String getPattern() { * Set the key Field Value Pattern. * * @param value - * the pattern value to set + * the pattern value to set */ public void setPattern(@Nullable String value) { _pattern = value; @@ -119,8 +117,7 @@ public void setPattern(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -133,11 +130,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/METASCHEMA.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/METASCHEMA.java index 8ff8edc60..e1a7cbd5b 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/METASCHEMA.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/METASCHEMA.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -56,58 +55,14 @@ name = "METASCHEMA", moduleClass = MetaschemaModelModule.class, rootName = "METASCHEMA", - valueConstraints = @ValueConstraints(lets = { - @Let(name = "all-imports", - target = "recurse-depth('for $import in ./import return doc(resolve-uri($import/@href))/METASCHEMA')"), - @Let(name = "deprecated-type-map", - target = "map { 'base64Binary':'base64','dateTime':'date-time','dateTime-with-timezone':'date-time-with-timezone','email':'email-address','nonNegativeInteger':'non-negative-integer','positiveInteger':'positive-integer' }") }, - expect = { @Expect(id = "module-top-level-version-required", - formalName = "Require Schema Version for Top-Level Modules", - description = "A top-level module, a module that is not marked as @abstract='yes', must have a schema version specified.", - level = IConstraint.Level.WARNING, target = ".[not(@abstract) or @abstract='no']", test = "schema-version", - message = "Unless marked as @abstract='yes', a Metaschema module (or an imported module) should have a schema version."), - @Expect(id = "module-top-level-root-required", formalName = "Require Root Assembly for Top-Level Modules", - description = "A top-level module, a module that is not marked as @abstract='yes', must have at least one assembly with a root-name.", - level = IConstraint.Level.WARNING, target = ".[not(@abstract) or @abstract='no']", - test = "exists($all-imports/define-assembly/root-name)", - message = "Unless marked as @abstract='yes', a Metaschema module (or an imported module) should have at least one assembly with a root-name."), - @Expect(id = "module-import-href-available", formalName = "Import is Resolvable", - description = "Ensure each import has a resolvable @href.", level = IConstraint.Level.ERROR, - target = "import", test = "doc-available(resolve-uri(@href))", - message = "Unable to access a Metaschema module at '{ resolve-uri(@href) }'."), - @Expect(id = "module-import-href-is-module", formalName = "Import is a Metaschema module", - description = "Ensure each import is a Metaschema module.", level = IConstraint.Level.ERROR, - target = "import", test = "doc(resolve-uri(@href))/METASCHEMA ! exists(.)", - message = "The resource at '{ resolve-uri(@href) }' is not a Metaschema module."), - @Expect(id = "module-model-group-a-invalid", formalName = "Group-As unneeded with max-occurs='1'", - description = "A field or assembly instance with a max occurrence of \\`1\\` must not have a \\`group-as\\` child.", - level = IConstraint.Level.ERROR, - target = ".//(define-assembly|define-field|assembly|field)[@max-occurs=1]", test = ".[not(group-as)]", - message = "Use of `group-as` in the location '{ path() }' requires a parent with a max-occurs that is greater than 1; otherwise the `group-as` needs to be removed."), - @Expect(id = "metaschema-deprecated-types", formalName = "Avoid Deprecated Data Type Use", - description = "Ensure that the data type specified is not one of the legacy Metaschema data types which have been deprecated (i.e. base64Binary, dateTime, dateTime-with-timezone, email, nonNegativeInteger, positiveInteger).", - level = IConstraint.Level.WARNING, - target = ".//matches/@datatype|.//(define-field|define-flag)/@as-type", - test = "not(data(.)=('base64Binary','dateTime','dateTime-with-timezone','email','nonNegativeInteger','positiveInteger'))", - message = "Use of the type '{ data(.) }' is deprecated. Use '{ $deprecated-type-map(data(.))}' instead.") }), - modelConstraints = @gov.nist.secauto.metaschema.databind.model.annotations.AssemblyConstraints( - index = @Index(id = "module-short-name-unique", formalName = "Index Module Short Names", - description = "Ensures that the current and all imported modules have a unique short name.", - level = IConstraint.Level.ERROR, target = "(.|$all-imports)", name = "metaschema-metadata-short-name-index", - keyFields = @KeyField(target = "@short-name")), - unique = { @IsUnique(id = "module-namespace-unique-entry", formalName = "Require Unique Namespace Entries", - description = "Ensures that all declared namespace entries are unique.", level = IConstraint.Level.ERROR, - target = "namespace-binding", keyFields = { @KeyField(target = "@prefix"), @KeyField(target = "@uri") }), - @IsUnique(id = "module-namespace-unique-prefix", formalName = "Require Unique Namespace Entry Prefixes", - description = "Ensures that all declared namespace entries have a unique prefix.", - level = IConstraint.Level.ERROR, target = "namespace-binding", - keyFields = @KeyField(target = "@prefix")) })) + valueConstraints = @ValueConstraints(lets = {@Let(name = "all-imports", target = "recurse-depth('for $import in ./import return doc(resolve-uri($import/@href))/METASCHEMA')"), @Let(name = "deprecated-type-map", target = "map { 'base64Binary':'base64','dateTime':'date-time','dateTime-with-timezone':'date-time-with-timezone','email':'email-address','nonNegativeInteger':'non-negative-integer','positiveInteger':'positive-integer' }")}, expect = {@Expect(id = "module-top-level-version-required", formalName = "Require Schema Version for Top-Level Modules", description = "A top-level module, a module that is not marked as @abstract='yes', must have a schema version specified.", level = IConstraint.Level.WARNING, target = ".[not(@abstract) or @abstract='no']", test = "schema-version", message = "Unless marked as @abstract='yes', a Metaschema module (or an imported module) should have a schema version."), @Expect(id = "module-top-level-root-required", formalName = "Require Root Assembly for Top-Level Modules", description = "A top-level module, a module that is not marked as @abstract='yes', must have at least one assembly with a root-name.", level = IConstraint.Level.WARNING, target = ".[not(@abstract) or @abstract='no']", test = "exists($all-imports/define-assembly/root-name)", message = "Unless marked as @abstract='yes', a Metaschema module (or an imported module) should have at least one assembly with a root-name."), @Expect(id = "module-import-href-available", formalName = "Import is Resolvable", description = "Ensure each import has a resolvable @href.", level = IConstraint.Level.ERROR, target = "import", test = "doc-available(resolve-uri(@href))", message = "Unable to access a Metaschema module at '{ resolve-uri(@href) }'."), @Expect(id = "module-import-href-is-module", formalName = "Import is a Metaschema module", description = "Ensure each import is a Metaschema module.", level = IConstraint.Level.ERROR, target = "import", test = "doc(resolve-uri(@href))/METASCHEMA ! exists(.)", message = "The resource at '{ resolve-uri(@href) }' is not a Metaschema module."), @Expect(id = "module-model-group-a-invalid", formalName = "Group-As unneeded with max-occurs='1'", description = "A field or assembly instance with a max occurrence of \\`1\\` must not have a \\`group-as\\` child.", level = IConstraint.Level.ERROR, target = ".//(define-assembly|define-field|assembly|field)[@max-occurs=1]", test = ".[not(group-as)]", message = "Use of `group-as` in the location '{ path() }' requires a parent with a max-occurs that is greater than 1; otherwise the `group-as` needs to be removed."), @Expect(id = "metaschema-deprecated-types", formalName = "Avoid Deprecated Data Type Use", description = "Ensure that the data type specified is not one of the legacy Metaschema data types which have been deprecated (i.e. base64Binary, dateTime, dateTime-with-timezone, email, nonNegativeInteger, positiveInteger).", level = IConstraint.Level.WARNING, target = ".//matches/@datatype|.//(define-field|define-flag)/@as-type", test = "not(data(.)=('base64Binary','dateTime','dateTime-with-timezone','email','nonNegativeInteger','positiveInteger'))", message = "Use of the type '{ data(.) }' is deprecated. Use '{ $deprecated-type-map(data(.))}' instead.")}), + modelConstraints = @gov.nist.secauto.metaschema.databind.model.annotations.AssemblyConstraints(index = @Index(id = "module-short-name-unique", formalName = "Index Module Short Names", description = "Ensures that the current and all imported modules have a unique short name.", level = IConstraint.Level.ERROR, target = "(.|$all-imports)", name = "metaschema-metadata-short-name-index", keyFields = @KeyField(target = "@short-name")), unique = {@IsUnique(id = "module-namespace-unique-entry", formalName = "Require Unique Namespace Entries", description = "Ensures that all declared namespace entries are unique.", level = IConstraint.Level.ERROR, target = "namespace-binding", keyFields = {@KeyField(target = "@prefix"), @KeyField(target = "@uri")}), @IsUnique(id = "module-namespace-unique-prefix", formalName = "Require Unique Namespace Entry Prefixes", description = "Ensures that all declared namespace entries have a unique prefix.", level = IConstraint.Level.ERROR, target = "namespace-binding", keyFields = @KeyField(target = "@prefix"))}) +) public class METASCHEMA implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * Determines if the Metaschema module is abstract (‘yes’) or not - * (‘no’). + * Determines if the Metaschema module is abstract (‘yes’) or not (‘no’). */ @BoundFlag( formalName = "Is Abstract?", @@ -115,9 +70,8 @@ public class METASCHEMA implements IBoundObject { name = "abstract", defaultValue = "no", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "yes", description = "The module is abstract."), - @AllowedValue(value = "no", description = "The module is not abstract.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "yes", description = "The module is abstract."), @AllowedValue(value = "no", description = "The module is not abstract.")})) + ) private String _abstract; /** @@ -128,125 +82,114 @@ public class METASCHEMA implements IBoundObject { description = "The name of the information model represented by this Metaschema definition.", useName = "schema-name", minOccurs = 1, - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _schemaName; /** - * A version string used to distinguish between multiple revisions of the same - * Metaschema module. + * A version string used to distinguish between multiple revisions of the same Metaschema module. */ @BoundField( description = "A version string used to distinguish between multiple revisions of the same Metaschema module.", useName = "schema-version", minOccurs = 1, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _schemaVersion; /** - * A short (code) name to be used for the Metaschema module. This name may be - * used as a constituent of names assigned to derived artifacts, such as schemas - * and conversion utilities. + * A short (code) name to be used for the Metaschema module. This name may be used as a constituent of names assigned to derived artifacts, such as schemas and conversion utilities. */ @BoundField( formalName = "Module Short Name", description = "A short (code) name to be used for the Metaschema module. This name may be used as a constituent of names assigned to derived artifacts, such as schemas and conversion utilities.", useName = "short-name", minOccurs = 1, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _shortName; /** - * The namespace for the collection of Metaschema module this Metaschema module - * belongs to. This value is also used as the XML namespace governing the names - * of elements in XML documents. By using this namespace, documents and document - * fragments used in mixed-format environments may be distinguished from - * neighbor XML formats using another namespaces. This value is not reflected in - * Metaschema JSON. + * The namespace for the collection of Metaschema module this Metaschema module belongs to. This value is also used as the XML namespace governing the names of elements in XML documents. By using this namespace, documents and document fragments used in mixed-format environments may be distinguished from neighbor XML formats using another namespaces. This value is not reflected in Metaschema JSON. */ @BoundField( formalName = "Module Collection Namespace", description = "The namespace for the collection of Metaschema module this Metaschema module belongs to. This value is also used as the XML namespace governing the names of elements in XML documents. By using this namespace, documents and document fragments used in mixed-format environments may be distinguished from neighbor XML formats using another namespaces. This value is not reflected in Metaschema JSON.", useName = "namespace", minOccurs = 1, - typeAdapter = UriAdapter.class) + typeAdapter = UriAdapter.class + ) private URI _namespace; /** - * The JSON Base URI is the nominal base URI assigned to a JSON Schema instance - * expressing the model defined by this Metaschema module. + * The JSON Base URI is the nominal base URI assigned to a JSON Schema instance expressing the model defined by this Metaschema module. */ @BoundField( formalName = "JSON Base URI", description = "The JSON Base URI is the nominal base URI assigned to a JSON Schema instance expressing the model defined by this Metaschema module.", useName = "json-base-uri", minOccurs = 1, - typeAdapter = UriAdapter.class) + typeAdapter = UriAdapter.class + ) private URI _jsonBaseUri; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Imports a set of Metaschema modules contained in another resource. Imports - * support the reuse of common information structures. + * Imports a set of Metaschema modules contained in another resource. Imports support the reuse of common information structures. */ @BoundAssembly( formalName = "Module Import", description = "Imports a set of Metaschema modules contained in another resource. Imports support the reuse of common information structures.", useName = "import", maxOccurs = -1, - groupAs = @GroupAs(name = "imports", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "imports", inJson = JsonGroupAsBehavior.LIST) + ) private List _imports; /** - * Assigns a Metapath namespace to a prefix for use in a Metapath expression in - * a lexical qualified name. + * Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name. */ @BoundAssembly( formalName = "Metapath Namespace Declaration", description = "Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name.", useName = "namespace-binding", maxOccurs = -1, - groupAs = @GroupAs(name = "namespace-bindings", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "namespace-bindings", inJson = JsonGroupAsBehavior.LIST) + ) private List _namespaceBindings; @BoundChoiceGroup( maxOccurs = -1, groupAs = @GroupAs(name = "definitions", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Global Assembly Definition", - description = "In XML, an element with structured element content. In JSON, an object with properties. Defined globally, an assembly can be assigned to appear in the `model` of any assembly (another assembly type, or itself), by `assembly` reference.", - useName = "define-assembly", discriminatorValue = "assembly", binding = DefineAssembly.class), - @BoundGroupedAssembly(formalName = "Global Field Definition", useName = "define-field", - discriminatorValue = "field", binding = DefineField.class), - @BoundGroupedAssembly(formalName = "Global Flag Definition", useName = "define-flag", - discriminatorValue = "flag", binding = DefineFlag.class) - }) + @BoundGroupedAssembly(formalName = "Global Assembly Definition", description = "In XML, an element with structured element content. In JSON, an object with properties. Defined globally, an assembly can be assigned to appear in the `model` of any assembly (another assembly type, or itself), by `assembly` reference.", useName = "define-assembly", discriminatorValue = "assembly", binding = DefineAssembly.class), + @BoundGroupedAssembly(formalName = "Global Field Definition", useName = "define-field", discriminatorValue = "field", binding = DefineField.class), + @BoundGroupedAssembly(formalName = "Global Flag Definition", useName = "define-flag", discriminatorValue = "flag", binding = DefineFlag.class) + } + ) private List _definitions; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA} instance with no metadata. */ public METASCHEMA() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public METASCHEMA(IMetaschemaData data) { this.__metaschemaData = data; @@ -261,8 +204,7 @@ public IMetaschemaData getMetaschemaData() { * Get the is Abstract?. * *

- * Determines if the Metaschema module is abstract (‘yes’) or not - * (‘no’). + * Determines if the Metaschema module is abstract (‘yes’) or not (‘no’). * * @return the abstract value, or {@code null} if not set */ @@ -275,11 +217,10 @@ public String getAbstract() { * Set the is Abstract?. * *

- * Determines if the Metaschema module is abstract (‘yes’) or not - * (‘no’). + * Determines if the Metaschema module is abstract (‘yes’) or not (‘no’). * * @param value - * the abstract value to set + * the abstract value to set */ public void setAbstract(@Nullable String value) { _abstract = value; @@ -305,7 +246,7 @@ public MarkupLine getSchemaName() { * The name of the information model represented by this Metaschema definition. * * @param value - * the schema-name value to set + * the schema-name value to set */ public void setSchemaName(@NonNull MarkupLine value) { _schemaName = value; @@ -315,8 +256,7 @@ public void setSchemaName(@NonNull MarkupLine value) { * Get the {@code schema-version} property. * *

- * A version string used to distinguish between multiple revisions of the same - * Metaschema module. + * A version string used to distinguish between multiple revisions of the same Metaschema module. * * @return the schema-version value */ @@ -329,11 +269,10 @@ public String getSchemaVersion() { * Set the {@code schema-version} property. * *

- * A version string used to distinguish between multiple revisions of the same - * Metaschema module. + * A version string used to distinguish between multiple revisions of the same Metaschema module. * * @param value - * the schema-version value to set + * the schema-version value to set */ public void setSchemaVersion(@NonNull String value) { _schemaVersion = value; @@ -343,9 +282,7 @@ public void setSchemaVersion(@NonNull String value) { * Get the module Short Name. * *

- * A short (code) name to be used for the Metaschema module. This name may be - * used as a constituent of names assigned to derived artifacts, such as schemas - * and conversion utilities. + * A short (code) name to be used for the Metaschema module. This name may be used as a constituent of names assigned to derived artifacts, such as schemas and conversion utilities. * * @return the short-name value */ @@ -358,12 +295,10 @@ public String getShortName() { * Set the module Short Name. * *

- * A short (code) name to be used for the Metaschema module. This name may be - * used as a constituent of names assigned to derived artifacts, such as schemas - * and conversion utilities. + * A short (code) name to be used for the Metaschema module. This name may be used as a constituent of names assigned to derived artifacts, such as schemas and conversion utilities. * * @param value - * the short-name value to set + * the short-name value to set */ public void setShortName(@NonNull String value) { _shortName = value; @@ -373,12 +308,7 @@ public void setShortName(@NonNull String value) { * Get the module Collection Namespace. * *

- * The namespace for the collection of Metaschema module this Metaschema module - * belongs to. This value is also used as the XML namespace governing the names - * of elements in XML documents. By using this namespace, documents and document - * fragments used in mixed-format environments may be distinguished from - * neighbor XML formats using another namespaces. This value is not reflected in - * Metaschema JSON. + * The namespace for the collection of Metaschema module this Metaschema module belongs to. This value is also used as the XML namespace governing the names of elements in XML documents. By using this namespace, documents and document fragments used in mixed-format environments may be distinguished from neighbor XML formats using another namespaces. This value is not reflected in Metaschema JSON. * * @return the namespace value */ @@ -391,15 +321,10 @@ public URI getNamespace() { * Set the module Collection Namespace. * *

- * The namespace for the collection of Metaschema module this Metaschema module - * belongs to. This value is also used as the XML namespace governing the names - * of elements in XML documents. By using this namespace, documents and document - * fragments used in mixed-format environments may be distinguished from - * neighbor XML formats using another namespaces. This value is not reflected in - * Metaschema JSON. + * The namespace for the collection of Metaschema module this Metaschema module belongs to. This value is also used as the XML namespace governing the names of elements in XML documents. By using this namespace, documents and document fragments used in mixed-format environments may be distinguished from neighbor XML formats using another namespaces. This value is not reflected in Metaschema JSON. * * @param value - * the namespace value to set + * the namespace value to set */ public void setNamespace(@NonNull URI value) { _namespace = value; @@ -409,8 +334,7 @@ public void setNamespace(@NonNull URI value) { * Get the jSON Base URI. * *

- * The JSON Base URI is the nominal base URI assigned to a JSON Schema instance - * expressing the model defined by this Metaschema module. + * The JSON Base URI is the nominal base URI assigned to a JSON Schema instance expressing the model defined by this Metaschema module. * * @return the json-base-uri value */ @@ -423,11 +347,10 @@ public URI getJsonBaseUri() { * Set the jSON Base URI. * *

- * The JSON Base URI is the nominal base URI assigned to a JSON Schema instance - * expressing the model defined by this Metaschema module. + * The JSON Base URI is the nominal base URI assigned to a JSON Schema instance expressing the model defined by this Metaschema module. * * @param value - * the json-base-uri value to set + * the json-base-uri value to set */ public void setJsonBaseUri(@NonNull URI value) { _jsonBaseUri = value; @@ -437,8 +360,7 @@ public void setJsonBaseUri(@NonNull URI value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -451,11 +373,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -465,8 +386,7 @@ public void setRemarks(@Nullable Remarks value) { * Get the module Import. * *

- * Imports a set of Metaschema modules contained in another resource. Imports - * support the reuse of common information structures. + * Imports a set of Metaschema modules contained in another resource. Imports support the reuse of common information structures. * * @return the import value */ @@ -482,11 +402,10 @@ public List getImports() { * Set the module Import. * *

- * Imports a set of Metaschema modules contained in another resource. Imports - * support the reuse of common information structures. + * Imports a set of Metaschema modules contained in another resource. Imports support the reuse of common information structures. * * @param value - * the import value to set + * the import value to set */ public void setImports(@NonNull List value) { _imports = value; @@ -494,13 +413,11 @@ public void setImports(@NonNull List value) { /** * Add a new {@link Import} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addImport(Import item) { - Import value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Import value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_imports == null) { _imports = new LinkedList<>(); } @@ -509,13 +426,11 @@ public boolean addImport(Import item) { /** * Remove the first matching {@link Import} item from the underlying collection. - * - * @param item - * the item to remove + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeImport(Import item) { - Import value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Import value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _imports != null && _imports.remove(value); } @@ -523,8 +438,7 @@ public boolean removeImport(Import item) { * Get the metapath Namespace Declaration. * *

- * Assigns a Metapath namespace to a prefix for use in a Metapath expression in - * a lexical qualified name. + * Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name. * * @return the namespace-binding value */ @@ -540,11 +454,10 @@ public List getNamespaceBindings() { * Set the metapath Namespace Declaration. * *

- * Assigns a Metapath namespace to a prefix for use in a Metapath expression in - * a lexical qualified name. + * Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name. * * @param value - * the namespace-binding value to set + * the namespace-binding value to set */ public void setNamespaceBindings(@NonNull List value) { _namespaceBindings = value; @@ -552,13 +465,11 @@ public void setNamespaceBindings(@NonNull List value) { /** * Add a new {@link MetapathNamespace} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addNamespaceBinding(MetapathNamespace item) { - MetapathNamespace value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetapathNamespace value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_namespaceBindings == null) { _namespaceBindings = new LinkedList<>(); } @@ -566,15 +477,12 @@ public boolean addNamespaceBinding(MetapathNamespace item) { } /** - * Remove the first matching {@link MetapathNamespace} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link MetapathNamespace} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeNamespaceBinding(MetapathNamespace item) { - MetapathNamespace value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetapathNamespace value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _namespaceBindings != null && _namespaceBindings.remove(value); } @@ -595,7 +503,7 @@ public List getDefinitions() { * Set the {@code definitions} choice group items. * * @param value - * the definitions items to set + * the definitions items to set */ public void setDefinitions(@NonNull List value) { _definitions = value; @@ -607,45 +515,41 @@ public String toString() { } /** - * Imports a set of Metaschema modules contained in another resource. Imports - * support the reuse of common information structures. + * Imports a set of Metaschema modules contained in another resource. Imports support the reuse of common information structures. */ @MetaschemaAssembly( formalName = "Module Import", description = "Imports a set of Metaschema modules contained in another resource. Imports support the reuse of common information structures.", name = "import", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class Import implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * A relative or absolute URI for retrieving an out-of-line Metaschema - * definition. + * A relative or absolute URI for retrieving an out-of-line Metaschema definition. */ @BoundFlag( formalName = "Import URI Reference", description = "A relative or absolute URI for retrieving an out-of-line Metaschema definition.", name = "href", required = true, - typeAdapter = UriReferenceAdapter.class) + typeAdapter = UriReferenceAdapter.class + ) private URI _href; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.Import} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.Import} instance with no metadata. */ public Import() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.Import} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.Import} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Import(IMetaschemaData data) { this.__metaschemaData = data; @@ -660,8 +564,7 @@ public IMetaschemaData getMetaschemaData() { * Get the import URI Reference. * *

- * A relative or absolute URI for retrieving an out-of-line Metaschema - * definition. + * A relative or absolute URI for retrieving an out-of-line Metaschema definition. * * @return the href value */ @@ -674,11 +577,10 @@ public URI getHref() { * Set the import URI Reference. * *

- * A relative or absolute URI for retrieving an out-of-line Metaschema - * definition. + * A relative or absolute URI for retrieving an out-of-line Metaschema definition. * * @param value - * the href value to set + * the href value to set */ public void setHref(@NonNull URI value) { _href = value; @@ -691,16 +593,14 @@ public String toString() { } /** - * In XML, an element with structured element content. In JSON, an object with - * properties. Defined globally, an assembly can be assigned to appear in the - * model of any assembly (another assembly type, or itself), by - * assembly reference. + * In XML, an element with structured element content. In JSON, an object with properties. Defined globally, an assembly can be assigned to appear in the model of any assembly (another assembly type, or itself), by assembly reference. */ @MetaschemaAssembly( formalName = "Global Assembly Definition", description = "In XML, an element with structured element content. In JSON, an object with properties. Defined globally, an assembly can be assigned to appear in the `model` of any assembly (another assembly type, or itself), by `assembly` reference.", name = "define-assembly", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class DefineAssembly implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -708,13 +608,15 @@ public static class DefineAssembly implements IBoundObject { formalName = "Global Assembly Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Global Assembly Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( @@ -722,17 +624,15 @@ public static class DefineAssembly implements IBoundObject { name = "scope", defaultValue = "global", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "local", - description = "This definition is only available in the context of the current Metaschema module."), - @AllowedValue(value = "global", - description = "This definition will be made available to any Metaschema module that includes this one either directly or indirectly through a chain of imported Metaschemas.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "local", description = "This definition is only available in the context of the current Metaschema module."), @AllowedValue(value = "global", description = "This definition will be made available to any Metaschema module that includes this one either directly or indirectly through a chain of imported Metaschemas.")})) + ) private String _scope; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; /** @@ -742,25 +642,27 @@ public static class DefineAssembly implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; /** @@ -769,87 +671,87 @@ public static class DefineAssembly implements IBoundObject { @BoundField( formalName = "Use Name", description = "Allows the name of the definition to be overridden.", - useName = "use-name") + useName = "use-name" + ) @BoundChoice( - choiceId = "choice-1") + choiceId = "choice-1" + ) private UseName _useName; /** - * Provides a root name, for when the definition is used as the root of a node - * hierarchy. + * Provides a root name, for when the definition is used as the root of a node hierarchy. */ @BoundField( formalName = "Root Name", description = "Provides a root name, for when the definition is used as the root of a node hierarchy.", useName = "root-name", - minOccurs = 1) + minOccurs = 1 + ) @BoundChoice( - choiceId = "choice-1") + choiceId = "choice-1" + ) private RootName _rootName; /** - * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. */ @BoundAssembly( formalName = "JSON Key", description = "Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share `json-key` values.", - useName = "json-key") + useName = "json-key" + ) private JsonKey _jsonKey; @BoundChoiceGroup( maxOccurs = -1, groupAs = @GroupAs(name = "flags", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", - discriminatorValue = "flag", binding = InlineDefineFlag.class), - @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", - binding = FlagReference.class) - }) + @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", discriminatorValue = "flag", binding = InlineDefineFlag.class), + @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", binding = FlagReference.class) + } + ) private List _flags; @BoundAssembly( - useName = "model") + useName = "model" + ) private AssemblyModel _model; @BoundAssembly( - useName = "constraint") + useName = "constraint" + ) private AssemblyConstraints _constraint; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; @BoundAssembly( formalName = "Example", useName = "example", maxOccurs = -1, - groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST) + ) private List _examples; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineAssembly} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineAssembly} instance with no metadata. */ public DefineAssembly() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineAssembly} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineAssembly} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public DefineAssembly(IMetaschemaData data) { this.__metaschemaData = data; @@ -874,7 +776,7 @@ public String getName() { * Set the global Assembly Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -894,7 +796,7 @@ public BigInteger getIndex() { * Set the global Assembly Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -914,7 +816,7 @@ public String getScope() { * Set the definition Scope. * * @param value - * the scope value to set + * the scope value to set */ public void setScope(@Nullable String value) { _scope = value; @@ -934,7 +836,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -960,7 +862,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -970,8 +872,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -984,11 +885,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -1011,7 +911,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -1019,13 +919,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -1033,15 +931,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -1065,7 +960,7 @@ public UseName getUseName() { * Allows the name of the definition to be overridden. * * @param value - * the use-name value to set + * the use-name value to set */ public void setUseName(@Nullable UseName value) { _useName = value; @@ -1075,8 +970,7 @@ public void setUseName(@Nullable UseName value) { * Get the root Name. * *

- * Provides a root name, for when the definition is used as the root of a node - * hierarchy. + * Provides a root name, for when the definition is used as the root of a node hierarchy. * * @return the root-name value */ @@ -1089,11 +983,10 @@ public RootName getRootName() { * Set the root Name. * *

- * Provides a root name, for when the definition is used as the root of a node - * hierarchy. + * Provides a root name, for when the definition is used as the root of a node hierarchy. * * @param value - * the root-name value to set + * the root-name value to set */ public void setRootName(@NonNull RootName value) { _rootName = value; @@ -1103,9 +996,7 @@ public void setRootName(@NonNull RootName value) { * Get the jSON Key. * *

- * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. * * @return the json-key value, or {@code null} if not set */ @@ -1118,12 +1009,10 @@ public JsonKey getJsonKey() { * Set the jSON Key. * *

- * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. * * @param value - * the json-key value to set + * the json-key value to set */ public void setJsonKey(@Nullable JsonKey value) { _jsonKey = value; @@ -1146,7 +1035,7 @@ public List getFlags() { * Set the {@code flags} choice group items. * * @param value - * the flags items to set + * the flags items to set */ public void setFlags(@NonNull List value) { _flags = value; @@ -1166,7 +1055,7 @@ public AssemblyModel getModel() { * Set the {@code model} property. * * @param value - * the model value to set + * the model value to set */ public void setModel(@Nullable AssemblyModel value) { _model = value; @@ -1186,7 +1075,7 @@ public AssemblyConstraints getConstraint() { * Set the {@code constraint} property. * * @param value - * the constraint value to set + * the constraint value to set */ public void setConstraint(@Nullable AssemblyConstraints value) { _constraint = value; @@ -1196,8 +1085,7 @@ public void setConstraint(@Nullable AssemblyConstraints value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -1210,11 +1098,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -1237,7 +1124,7 @@ public List getExamples() { * Set the example. * * @param value - * the example value to set + * the example value to set */ public void setExamples(@NonNull List value) { _examples = value; @@ -1245,13 +1132,11 @@ public void setExamples(@NonNull List value) { /** * Add a new {@link Example} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_examples == null) { _examples = new LinkedList<>(); } @@ -1259,15 +1144,12 @@ public boolean addExample(Example item) { } /** - * Remove the first matching {@link Example} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Example} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _examples != null && _examples.remove(value); } @@ -1277,14 +1159,14 @@ public String toString() { } /** - * Provides a root name, for when the definition is used as the root of a node - * hierarchy. + * Provides a root name, for when the definition is used as the root of a node hierarchy. */ @MetaschemaField( formalName = "Root Name", description = "Provides a root name, for when the definition is used as the root of a node hierarchy.", name = "root-name", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class RootName implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -1295,30 +1177,28 @@ public static class RootName implements IBoundObject { formalName = "Numeric Index", description = "Used for binary formats instead of the textual name.", name = "index", - typeAdapter = NonNegativeIntegerAdapter.class) + typeAdapter = NonNegativeIntegerAdapter.class + ) private BigInteger _index; @BoundFieldValue( valueKeyName = "name", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineAssembly.RootName} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineAssembly.RootName} instance with no metadata. */ public RootName() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineAssembly.RootName} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineAssembly.RootName} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public RootName(IMetaschemaData data) { this.__metaschemaData = data; @@ -1349,7 +1229,7 @@ public BigInteger getIndex() { * Used for binary formats instead of the textual name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -1374,7 +1254,8 @@ public String toString() { @MetaschemaAssembly( formalName = "Global Field Definition", name = "define-field", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class DefineField implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -1382,13 +1263,15 @@ public static class DefineField implements IBoundObject { formalName = "Global Field Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Global Field Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( @@ -1396,17 +1279,15 @@ public static class DefineField implements IBoundObject { name = "scope", defaultValue = "global", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "local", - description = "This definition is only available in the context of the current Metaschema module."), - @AllowedValue(value = "global", - description = "This definition will be made available to any Metaschema module that includes this one either directly or indirectly through a chain of imported Metaschemas.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "local", description = "This definition is only available in the context of the current Metaschema module."), @AllowedValue(value = "global", description = "This definition will be made available to any Metaschema module that includes this one either directly or indirectly through a chain of imported Metaschemas.")})) + ) private String _scope; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFlag( @@ -1414,76 +1295,15 @@ public static class DefineField implements IBoundObject { name = "as-type", defaultValue = "string", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - allowOthers = true, - values = { @AllowedValue(value = "markup-line", - description = "The [markup-line](https://framework.metaschema.dev/specification/datatypes/#markup-line) data type."), - @AllowedValue(value = "markup-multiline", - description = "The [markup-multiline](https://framework.metaschema.dev/specification/datatypes/#markup-multiline) data type."), - @AllowedValue(value = "base64", - description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), - @AllowedValue(value = "boolean", - description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), - @AllowedValue(value = "date", - description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), - @AllowedValue(value = "date-time", - description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), - @AllowedValue(value = "date-time-with-timezone", - description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), - @AllowedValue(value = "date-with-timezone", - description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), - @AllowedValue(value = "day-time-duration", - description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), - @AllowedValue(value = "decimal", - description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), - @AllowedValue(value = "email-address", - description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), - @AllowedValue(value = "hostname", - description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), - @AllowedValue(value = "integer", - description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), - @AllowedValue(value = "ip-v4-address", - description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), - @AllowedValue(value = "ip-v6-address", - description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), - @AllowedValue(value = "non-negative-integer", - description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), - @AllowedValue(value = "positive-integer", - description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), - @AllowedValue(value = "string", - description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), - @AllowedValue(value = "token", - description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), - @AllowedValue(value = "uri", - description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), - @AllowedValue(value = "uri-reference", - description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), - @AllowedValue(value = "uuid", - description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), - @AllowedValue(value = "base64Binary", - description = "An old name which is deprecated for use in favor of the 'base64' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime", - description = "An old name which is deprecated for use in favor of the 'date-time' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime-with-timezone", - description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "email", - description = "An old name which is deprecated for use in favor of the 'email-address' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "nonNegativeInteger", - description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "positiveInteger", - description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", - deprecatedVersion = "1.0.0") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, allowOthers = true, values = {@AllowedValue(value = "markup-line", description = "The [markup-line](https://framework.metaschema.dev/specification/datatypes/#markup-line) data type."), @AllowedValue(value = "markup-multiline", description = "The [markup-multiline](https://framework.metaschema.dev/specification/datatypes/#markup-multiline) data type."), @AllowedValue(value = "base64", description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), @AllowedValue(value = "boolean", description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), @AllowedValue(value = "date", description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), @AllowedValue(value = "date-time", description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), @AllowedValue(value = "date-time-with-timezone", description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), @AllowedValue(value = "date-with-timezone", description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), @AllowedValue(value = "day-time-duration", description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), @AllowedValue(value = "decimal", description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), @AllowedValue(value = "email-address", description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), @AllowedValue(value = "hostname", description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), @AllowedValue(value = "integer", description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), @AllowedValue(value = "ip-v4-address", description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), @AllowedValue(value = "ip-v6-address", description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), @AllowedValue(value = "non-negative-integer", description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), @AllowedValue(value = "positive-integer", description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), @AllowedValue(value = "string", description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), @AllowedValue(value = "token", description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), @AllowedValue(value = "uri", description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), @AllowedValue(value = "uri-reference", description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), @AllowedValue(value = "uuid", description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), @AllowedValue(value = "base64Binary", description = "An old name which is deprecated for use in favor of the 'base64' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime", description = "An old name which is deprecated for use in favor of the 'date-time' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime-with-timezone", description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "email", description = "An old name which is deprecated for use in favor of the 'email-address' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "nonNegativeInteger", description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "positiveInteger", description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", deprecatedVersion = "1.0.0")})) + ) private String _asType; @BoundFlag( formalName = "Default Field Value", name = "default", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _default; /** @@ -1493,25 +1313,27 @@ public static class DefineField implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; /** @@ -1520,83 +1342,84 @@ public static class DefineField implements IBoundObject { @BoundField( formalName = "Use Name", description = "Allows the name of the definition to be overridden.", - useName = "use-name") + useName = "use-name" + ) private UseName _useName; /** - * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. */ @BoundAssembly( formalName = "JSON Key", description = "Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share `json-key` values.", - useName = "json-key") + useName = "json-key" + ) private JsonKey _jsonKey; @BoundField( formalName = "Field Value JSON Property Name", useName = "json-value-key", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) @BoundChoice( - choiceId = "choice-1") + choiceId = "choice-1" + ) private String _jsonValueKey; @BoundAssembly( formalName = "Flag Used as the Field Value's JSON Property Name", - useName = "json-value-key-flag") + useName = "json-value-key-flag" + ) @BoundChoice( - choiceId = "choice-1") + choiceId = "choice-1" + ) private JsonValueKeyFlag _jsonValueKeyFlag; @BoundChoiceGroup( maxOccurs = -1, groupAs = @GroupAs(name = "flags", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", - discriminatorValue = "flag", binding = InlineDefineFlag.class), - @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", - binding = FlagReference.class) - }) + @BoundGroupedAssembly(formalName = "Inline Flag Definition", useName = "define-flag", discriminatorValue = "flag", binding = InlineDefineFlag.class), + @BoundGroupedAssembly(formalName = "Flag Reference", useName = "flag", discriminatorValue = "flag-ref", binding = FlagReference.class) + } + ) private List _flags; @BoundAssembly( - useName = "constraint") + useName = "constraint" + ) private FieldConstraints _constraint; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; @BoundAssembly( formalName = "Example", useName = "example", maxOccurs = -1, - groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST) + ) private List _examples; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineField} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineField} instance with no metadata. */ public DefineField() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineField} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineField} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public DefineField(IMetaschemaData data) { this.__metaschemaData = data; @@ -1621,7 +1444,7 @@ public String getName() { * Set the global Field Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -1641,7 +1464,7 @@ public BigInteger getIndex() { * Set the global Field Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -1661,7 +1484,7 @@ public String getScope() { * Set the definition Scope. * * @param value - * the scope value to set + * the scope value to set */ public void setScope(@Nullable String value) { _scope = value; @@ -1681,7 +1504,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -1701,7 +1524,7 @@ public String getAsType() { * Set the field Value Data Type. * * @param value - * the as-type value to set + * the as-type value to set */ public void setAsType(@Nullable String value) { _asType = value; @@ -1721,7 +1544,7 @@ public String getDefault() { * Set the default Field Value. * * @param value - * the default value to set + * the default value to set */ public void setDefault(@Nullable String value) { _default = value; @@ -1747,7 +1570,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -1757,8 +1580,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -1771,11 +1593,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -1798,7 +1619,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -1806,13 +1627,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -1820,15 +1639,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -1852,7 +1668,7 @@ public UseName getUseName() { * Allows the name of the definition to be overridden. * * @param value - * the use-name value to set + * the use-name value to set */ public void setUseName(@Nullable UseName value) { _useName = value; @@ -1862,9 +1678,7 @@ public void setUseName(@Nullable UseName value) { * Get the jSON Key. * *

- * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. * * @return the json-key value, or {@code null} if not set */ @@ -1877,12 +1691,10 @@ public JsonKey getJsonKey() { * Set the jSON Key. * *

- * Used in JSON (and similar formats) to identify a flag that will be used as - * the property name in an object hold a collection of sibling objects. Requires - * that siblings must never share json-key values. + * Used in JSON (and similar formats) to identify a flag that will be used as the property name in an object hold a collection of sibling objects. Requires that siblings must never share json-key values. * * @param value - * the json-key value to set + * the json-key value to set */ public void setJsonKey(@Nullable JsonKey value) { _jsonKey = value; @@ -1902,7 +1714,7 @@ public String getJsonValueKey() { * Set the field Value JSON Property Name. * * @param value - * the json-value-key value to set + * the json-value-key value to set */ public void setJsonValueKey(@Nullable String value) { _jsonValueKey = value; @@ -1922,7 +1734,7 @@ public JsonValueKeyFlag getJsonValueKeyFlag() { * Set the flag Used as the Field Value's JSON Property Name. * * @param value - * the json-value-key-flag value to set + * the json-value-key-flag value to set */ public void setJsonValueKeyFlag(@Nullable JsonValueKeyFlag value) { _jsonValueKeyFlag = value; @@ -1945,7 +1757,7 @@ public List getFlags() { * Set the {@code flags} choice group items. * * @param value - * the flags items to set + * the flags items to set */ public void setFlags(@NonNull List value) { _flags = value; @@ -1965,7 +1777,7 @@ public FieldConstraints getConstraint() { * Set the {@code constraint} property. * * @param value - * the constraint value to set + * the constraint value to set */ public void setConstraint(@Nullable FieldConstraints value) { _constraint = value; @@ -1975,8 +1787,7 @@ public void setConstraint(@Nullable FieldConstraints value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -1989,11 +1800,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -2016,7 +1826,7 @@ public List getExamples() { * Set the example. * * @param value - * the example value to set + * the example value to set */ public void setExamples(@NonNull List value) { _examples = value; @@ -2024,13 +1834,11 @@ public void setExamples(@NonNull List value) { /** * Add a new {@link Example} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_examples == null) { _examples = new LinkedList<>(); } @@ -2038,15 +1846,12 @@ public boolean addExample(Example item) { } /** - * Remove the first matching {@link Example} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Example} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _examples != null && _examples.remove(value); } @@ -2059,7 +1864,8 @@ public String toString() { @MetaschemaAssembly( formalName = "Global Flag Definition", name = "define-flag", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class DefineFlag implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -2067,13 +1873,15 @@ public static class DefineFlag implements IBoundObject { formalName = "Global Flag Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Global Flag Binary Name", name = "index", - typeAdapter = PositiveIntegerAdapter.class) + typeAdapter = PositiveIntegerAdapter.class + ) private BigInteger _index; @BoundFlag( @@ -2081,17 +1889,15 @@ public static class DefineFlag implements IBoundObject { name = "scope", defaultValue = "global", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "local", - description = "This definition is only available in the context of the current Metaschema module."), - @AllowedValue(value = "global", - description = "This definition will be made available to any Metaschema module that includes this one either directly or indirectly through a chain of imported Metaschemas.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "local", description = "This definition is only available in the context of the current Metaschema module."), @AllowedValue(value = "global", description = "This definition will be made available to any Metaschema module that includes this one either directly or indirectly through a chain of imported Metaschemas.")})) + ) private String _scope; @BoundFlag( formalName = "Deprecated Version", name = "deprecated", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _deprecated; @BoundFlag( @@ -2099,72 +1905,15 @@ public static class DefineFlag implements IBoundObject { name = "as-type", defaultValue = "string", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - allowOthers = true, - values = { @AllowedValue(value = "base64", - description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), - @AllowedValue(value = "boolean", - description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), - @AllowedValue(value = "date", - description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), - @AllowedValue(value = "date-time", - description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), - @AllowedValue(value = "date-time-with-timezone", - description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), - @AllowedValue(value = "date-with-timezone", - description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), - @AllowedValue(value = "day-time-duration", - description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), - @AllowedValue(value = "decimal", - description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), - @AllowedValue(value = "email-address", - description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), - @AllowedValue(value = "hostname", - description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), - @AllowedValue(value = "integer", - description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), - @AllowedValue(value = "ip-v4-address", - description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), - @AllowedValue(value = "ip-v6-address", - description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), - @AllowedValue(value = "non-negative-integer", - description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), - @AllowedValue(value = "positive-integer", - description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), - @AllowedValue(value = "string", - description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), - @AllowedValue(value = "token", - description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), - @AllowedValue(value = "uri", - description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), - @AllowedValue(value = "uri-reference", - description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), - @AllowedValue(value = "uuid", - description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), - @AllowedValue(value = "base64Binary", - description = "An old name which is deprecated for use in favor of the 'base64' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime", - description = "An old name which is deprecated for use in favor of the 'date-time' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime-with-timezone", - description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "email", - description = "An old name which is deprecated for use in favor of the 'email-address' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "nonNegativeInteger", - description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "positiveInteger", - description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", - deprecatedVersion = "1.0.0") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, allowOthers = true, values = {@AllowedValue(value = "base64", description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), @AllowedValue(value = "boolean", description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), @AllowedValue(value = "date", description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), @AllowedValue(value = "date-time", description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), @AllowedValue(value = "date-time-with-timezone", description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), @AllowedValue(value = "date-with-timezone", description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), @AllowedValue(value = "day-time-duration", description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), @AllowedValue(value = "decimal", description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), @AllowedValue(value = "email-address", description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), @AllowedValue(value = "hostname", description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), @AllowedValue(value = "integer", description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), @AllowedValue(value = "ip-v4-address", description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), @AllowedValue(value = "ip-v6-address", description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), @AllowedValue(value = "non-negative-integer", description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), @AllowedValue(value = "positive-integer", description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), @AllowedValue(value = "string", description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), @AllowedValue(value = "token", description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), @AllowedValue(value = "uri", description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), @AllowedValue(value = "uri-reference", description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), @AllowedValue(value = "uuid", description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), @AllowedValue(value = "base64Binary", description = "An old name which is deprecated for use in favor of the 'base64' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime", description = "An old name which is deprecated for use in favor of the 'date-time' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime-with-timezone", description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "email", description = "An old name which is deprecated for use in favor of the 'email-address' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "nonNegativeInteger", description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "positiveInteger", description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", deprecatedVersion = "1.0.0")})) + ) private String _asType; @BoundFlag( formalName = "Default Flag Value", name = "default", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _default; /** @@ -2174,25 +1923,27 @@ public static class DefineFlag implements IBoundObject { formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; /** @@ -2201,46 +1952,45 @@ public static class DefineFlag implements IBoundObject { @BoundField( formalName = "Use Name", description = "Allows the name of the definition to be overridden.", - useName = "use-name") + useName = "use-name" + ) private UseName _useName; @BoundAssembly( - useName = "constraint") + useName = "constraint" + ) private FlagConstraints _constraint; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; @BoundAssembly( formalName = "Example", useName = "example", maxOccurs = -1, - groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "examples", inJson = JsonGroupAsBehavior.LIST) + ) private List _examples; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineFlag} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineFlag} instance with no metadata. */ public DefineFlag() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineFlag} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.METASCHEMA.DefineFlag} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public DefineFlag(IMetaschemaData data) { this.__metaschemaData = data; @@ -2265,7 +2015,7 @@ public String getName() { * Set the global Flag Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -2285,7 +2035,7 @@ public BigInteger getIndex() { * Set the global Flag Binary Name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; @@ -2305,7 +2055,7 @@ public String getScope() { * Set the definition Scope. * * @param value - * the scope value to set + * the scope value to set */ public void setScope(@Nullable String value) { _scope = value; @@ -2325,7 +2075,7 @@ public String getDeprecated() { * Set the deprecated Version. * * @param value - * the deprecated value to set + * the deprecated value to set */ public void setDeprecated(@Nullable String value) { _deprecated = value; @@ -2345,7 +2095,7 @@ public String getAsType() { * Set the flag Value Data Type. * * @param value - * the as-type value to set + * the as-type value to set */ public void setAsType(@Nullable String value) { _asType = value; @@ -2365,7 +2115,7 @@ public String getDefault() { * Set the default Flag Value. * * @param value - * the default value to set + * the default value to set */ public void setDefault(@Nullable String value) { _default = value; @@ -2391,7 +2141,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -2401,8 +2151,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -2415,11 +2164,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -2442,7 +2190,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -2450,13 +2198,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -2464,15 +2210,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -2496,7 +2239,7 @@ public UseName getUseName() { * Allows the name of the definition to be overridden. * * @param value - * the use-name value to set + * the use-name value to set */ public void setUseName(@Nullable UseName value) { _useName = value; @@ -2516,7 +2259,7 @@ public FlagConstraints getConstraint() { * Set the {@code constraint} property. * * @param value - * the constraint value to set + * the constraint value to set */ public void setConstraint(@Nullable FlagConstraints value) { _constraint = value; @@ -2526,8 +2269,7 @@ public void setConstraint(@Nullable FlagConstraints value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -2540,11 +2282,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -2567,7 +2308,7 @@ public List getExamples() { * Set the example. * * @param value - * the example value to set + * the example value to set */ public void setExamples(@NonNull List value) { _examples = value; @@ -2575,13 +2316,11 @@ public void setExamples(@NonNull List value) { /** * Add a new {@link Example} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_examples == null) { _examples = new LinkedList<>(); } @@ -2589,15 +2328,12 @@ public boolean addExample(Example item) { } /** - * Remove the first matching {@link Example} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Example} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeExample(Example item) { - Example value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Example value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _examples != null && _examples.remove(value); } diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetapathContext.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetapathContext.java index 9d3a97fc3..7932eec94 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetapathContext.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetapathContext.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -24,58 +23,57 @@ @MetaschemaAssembly( name = "metapath-context", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class MetapathContext implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * A Metapath expression identifying the model node that the constraints will be - * applied to. + * A Metapath expression identifying the model node that the constraints will be applied to. */ @BoundAssembly( description = "A Metapath expression identifying the model node that the constraints will be applied to.", useName = "metapath", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "metapaths", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "metapaths", inJson = JsonGroupAsBehavior.LIST) + ) private List _metapaths; @BoundAssembly( - useName = "constraints") + useName = "constraints" + ) private AssemblyConstraints _constraints; @BoundAssembly( useName = "context", maxOccurs = -1, - groupAs = @GroupAs(name = "contexts", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "contexts", inJson = JsonGroupAsBehavior.LIST) + ) private List _contexts; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetapathContext} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetapathContext} instance with no metadata. */ public MetapathContext() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetapathContext} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetapathContext} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public MetapathContext(IMetaschemaData data) { this.__metaschemaData = data; @@ -90,8 +88,7 @@ public IMetaschemaData getMetaschemaData() { * Get the {@code metapath} property. * *

- * A Metapath expression identifying the model node that the constraints will be - * applied to. + * A Metapath expression identifying the model node that the constraints will be applied to. * * @return the metapath value */ @@ -107,11 +104,10 @@ public List getMetapaths() { * Set the {@code metapath} property. * *

- * A Metapath expression identifying the model node that the constraints will be - * applied to. + * A Metapath expression identifying the model node that the constraints will be applied to. * * @param value - * the metapath value to set + * the metapath value to set */ public void setMetapaths(@NonNull List value) { _metapaths = value; @@ -119,13 +115,11 @@ public void setMetapaths(@NonNull List value) { /** * Add a new {@link MetaschemaMetapath} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addMetapath(MetaschemaMetapath item) { - MetaschemaMetapath value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetaschemaMetapath value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_metapaths == null) { _metapaths = new LinkedList<>(); } @@ -133,15 +127,12 @@ public boolean addMetapath(MetaschemaMetapath item) { } /** - * Remove the first matching {@link MetaschemaMetapath} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link MetaschemaMetapath} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeMetapath(MetaschemaMetapath item) { - MetaschemaMetapath value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetaschemaMetapath value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _metapaths != null && _metapaths.remove(value); } @@ -159,7 +150,7 @@ public AssemblyConstraints getConstraints() { * Set the {@code constraints} property. * * @param value - * the constraints value to set + * the constraints value to set */ public void setConstraints(@Nullable AssemblyConstraints value) { _constraints = value; @@ -182,7 +173,7 @@ public List getContexts() { * Set the {@code context} property. * * @param value - * the context value to set + * the context value to set */ public void setContexts(@NonNull List value) { _contexts = value; @@ -190,13 +181,11 @@ public void setContexts(@NonNull List value) { /** * Add a new {@link MetapathContext} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addContext(MetapathContext item) { - MetapathContext value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetapathContext value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_contexts == null) { _contexts = new LinkedList<>(); } @@ -204,15 +193,12 @@ public boolean addContext(MetapathContext item) { } /** - * Remove the first matching {@link MetapathContext} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link MetapathContext} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeContext(MetapathContext item) { - MetapathContext value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetapathContext value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _contexts != null && _contexts.remove(value); } @@ -220,8 +206,7 @@ public boolean removeContext(MetapathContext item) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -234,11 +219,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetapathNamespace.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetapathNamespace.java index f1ef910c7..8760b0fca 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetapathNamespace.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetapathNamespace.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -20,14 +19,14 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * Assigns a Metapath namespace to a prefix for use in a Metapath expression in - * a lexical qualified name. + * Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name. */ @MetaschemaAssembly( formalName = "Metapath Namespace Declaration", description = "Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name.", name = "metapath-namespace", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class MetapathNamespace implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -39,7 +38,8 @@ public class MetapathNamespace implements IBoundObject { description = "The namespace URI to bind to the prefix.", name = "uri", required = true, - typeAdapter = UriAdapter.class) + typeAdapter = UriAdapter.class + ) private URI _uri; /** @@ -50,25 +50,22 @@ public class MetapathNamespace implements IBoundObject { description = "The prefix that is bound to the namespace.", name = "prefix", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _prefix; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetapathNamespace} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetapathNamespace} instance with no metadata. */ public MetapathNamespace() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetapathNamespace} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetapathNamespace} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public MetapathNamespace(IMetaschemaData data) { this.__metaschemaData = data; @@ -99,7 +96,7 @@ public URI getUri() { * The namespace URI to bind to the prefix. * * @param value - * the uri value to set + * the uri value to set */ public void setUri(@NonNull URI value) { _uri = value; @@ -125,7 +122,7 @@ public String getPrefix() { * The prefix that is bound to the namespace. * * @param value - * the prefix value to set + * the prefix value to set */ public void setPrefix(@NonNull String value) { _prefix = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaMetaConstraints.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaMetaConstraints.java index d122995dc..5f9efbd13 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaMetaConstraints.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaMetaConstraints.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -34,8 +33,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * Defines constraint rules to be applied to an existing set of Metaschema - * module-based models. + * Defines constraint rules to be applied to an existing set of Metaschema module-based models. */ @MetaschemaAssembly( formalName = "External Module Constraints", @@ -43,75 +41,60 @@ name = "metaschema-meta-constraints", moduleClass = MetaschemaModelModule.class, rootName = "metaschema-meta-constraints", - valueConstraints = @ValueConstraints(lets = @Let(name = "deprecated-type-map", - target = "map { 'base64Binary':'base64','dateTime':'date-time','dateTime-with-timezone':'date-time-with-timezone','email':'email-address','nonNegativeInteger':'non-negative-integer','positiveInteger':'positive-integer' }"), - expect = @Expect(id = "metaschema-deprecated-types", formalName = "Avoid Deprecated Data Type Use", - description = "Ensure that the data type specified is not one of the legacy Metaschema data types which have been deprecated (i.e. base64Binary, dateTime, dateTime-with-timezone, email, nonNegativeInteger, positiveInteger).", - level = IConstraint.Level.WARNING, target = ".//matches/@datatype|.//(define-field|define-flag)/@as-type", - test = "not(data(.)=('base64Binary','dateTime','dateTime-with-timezone','email','nonNegativeInteger','positiveInteger'))", - message = "Use of the type '{ data(.) }' is deprecated. Use '{ $deprecated-type-map(data(.))}' instead.")), - modelConstraints = @gov.nist.secauto.metaschema.databind.model.annotations.AssemblyConstraints(unique = { - @IsUnique(id = "meta-constraints-namespace-unique-entry", formalName = "Require Unique Namespace Entries", - description = "Ensures that all declared namespace entries are unique.", level = IConstraint.Level.ERROR, - target = "namespace-binding", keyFields = { @KeyField(target = "@prefix"), @KeyField(target = "@uri") }), - @IsUnique(id = "meta-constraints-namespace-unique-prefix", - formalName = "Require Unique Namespace Entry Prefixes", - description = "Ensures that all declared namespace entries have a unique prefix.", - level = IConstraint.Level.ERROR, target = "namespace-binding", - keyFields = @KeyField(target = "@prefix")) })) + valueConstraints = @ValueConstraints(lets = @Let(name = "deprecated-type-map", target = "map { 'base64Binary':'base64','dateTime':'date-time','dateTime-with-timezone':'date-time-with-timezone','email':'email-address','nonNegativeInteger':'non-negative-integer','positiveInteger':'positive-integer' }"), expect = @Expect(id = "metaschema-deprecated-types", formalName = "Avoid Deprecated Data Type Use", description = "Ensure that the data type specified is not one of the legacy Metaschema data types which have been deprecated (i.e. base64Binary, dateTime, dateTime-with-timezone, email, nonNegativeInteger, positiveInteger).", level = IConstraint.Level.WARNING, target = ".//matches/@datatype|.//(define-field|define-flag)/@as-type", test = "not(data(.)=('base64Binary','dateTime','dateTime-with-timezone','email','nonNegativeInteger','positiveInteger'))", message = "Use of the type '{ data(.) }' is deprecated. Use '{ $deprecated-type-map(data(.))}' instead.")), + modelConstraints = @gov.nist.secauto.metaschema.databind.model.annotations.AssemblyConstraints(unique = {@IsUnique(id = "meta-constraints-namespace-unique-entry", formalName = "Require Unique Namespace Entries", description = "Ensures that all declared namespace entries are unique.", level = IConstraint.Level.ERROR, target = "namespace-binding", keyFields = {@KeyField(target = "@prefix"), @KeyField(target = "@uri")}), @IsUnique(id = "meta-constraints-namespace-unique-prefix", formalName = "Require Unique Namespace Entry Prefixes", description = "Ensures that all declared namespace entries have a unique prefix.", level = IConstraint.Level.ERROR, target = "namespace-binding", keyFields = @KeyField(target = "@prefix"))}) +) public class MetaschemaMetaConstraints implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * Declares a set of Metaschema constraints from an out-of-line resource to - * import, supporting composition of constraint sets. + * Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets. */ @BoundAssembly( description = "Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets.", useName = "import", maxOccurs = -1, - groupAs = @GroupAs(name = "imports", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "imports", inJson = JsonGroupAsBehavior.LIST) + ) private List _imports; /** - * Assigns a Metapath namespace to a prefix for use in a Metapath expression in - * a lexical qualified name. + * Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name. */ @BoundAssembly( formalName = "Metapath Namespace Declaration", description = "Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name.", useName = "namespace-binding", maxOccurs = -1, - groupAs = @GroupAs(name = "namespace-bindings", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "namespace-bindings", inJson = JsonGroupAsBehavior.LIST) + ) private List _namespaceBindings; @BoundAssembly( - useName = "definition-context") + useName = "definition-context" + ) private DefinitionContext _definitionContext; @BoundAssembly( useName = "context", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "contexts", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "contexts", inJson = JsonGroupAsBehavior.LIST) + ) private List _contexts; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints} instance with no metadata. */ public MetaschemaMetaConstraints() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public MetaschemaMetaConstraints(IMetaschemaData data) { this.__metaschemaData = data; @@ -126,8 +109,7 @@ public IMetaschemaData getMetaschemaData() { * Get the {@code import} property. * *

- * Declares a set of Metaschema constraints from an out-of-line resource to - * import, supporting composition of constraint sets. + * Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets. * * @return the import value */ @@ -143,11 +125,10 @@ public List getImports() { * Set the {@code import} property. * *

- * Declares a set of Metaschema constraints from an out-of-line resource to - * import, supporting composition of constraint sets. + * Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets. * * @param value - * the import value to set + * the import value to set */ public void setImports(@NonNull List value) { _imports = value; @@ -155,13 +136,11 @@ public void setImports(@NonNull List value) { /** * Add a new {@link Import} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addImport(Import item) { - Import value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Import value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_imports == null) { _imports = new LinkedList<>(); } @@ -170,13 +149,11 @@ public boolean addImport(Import item) { /** * Remove the first matching {@link Import} item from the underlying collection. - * - * @param item - * the item to remove + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeImport(Import item) { - Import value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Import value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _imports != null && _imports.remove(value); } @@ -184,8 +161,7 @@ public boolean removeImport(Import item) { * Get the metapath Namespace Declaration. * *

- * Assigns a Metapath namespace to a prefix for use in a Metapath expression in - * a lexical qualified name. + * Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name. * * @return the namespace-binding value */ @@ -201,11 +177,10 @@ public List getNamespaceBindings() { * Set the metapath Namespace Declaration. * *

- * Assigns a Metapath namespace to a prefix for use in a Metapath expression in - * a lexical qualified name. + * Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name. * * @param value - * the namespace-binding value to set + * the namespace-binding value to set */ public void setNamespaceBindings(@NonNull List value) { _namespaceBindings = value; @@ -213,13 +188,11 @@ public void setNamespaceBindings(@NonNull List value) { /** * Add a new {@link MetapathNamespace} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addNamespaceBinding(MetapathNamespace item) { - MetapathNamespace value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetapathNamespace value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_namespaceBindings == null) { _namespaceBindings = new LinkedList<>(); } @@ -227,15 +200,12 @@ public boolean addNamespaceBinding(MetapathNamespace item) { } /** - * Remove the first matching {@link MetapathNamespace} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link MetapathNamespace} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeNamespaceBinding(MetapathNamespace item) { - MetapathNamespace value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetapathNamespace value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _namespaceBindings != null && _namespaceBindings.remove(value); } @@ -253,7 +223,7 @@ public DefinitionContext getDefinitionContext() { * Set the {@code definition-context} property. * * @param value - * the definition-context value to set + * the definition-context value to set */ public void setDefinitionContext(@Nullable DefinitionContext value) { _definitionContext = value; @@ -276,7 +246,7 @@ public List getContexts() { * Set the {@code context} property. * * @param value - * the context value to set + * the context value to set */ public void setContexts(@NonNull List value) { _contexts = value; @@ -284,13 +254,11 @@ public void setContexts(@NonNull List value) { /** * Add a new {@link MetapathContext} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addContext(MetapathContext item) { - MetapathContext value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetapathContext value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_contexts == null) { _contexts = new LinkedList<>(); } @@ -298,15 +266,12 @@ public boolean addContext(MetapathContext item) { } /** - * Remove the first matching {@link MetapathContext} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link MetapathContext} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeContext(MetapathContext item) { - MetapathContext value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetapathContext value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _contexts != null && _contexts.remove(value); } @@ -316,43 +281,39 @@ public String toString() { } /** - * Declares a set of Metaschema constraints from an out-of-line resource to - * import, supporting composition of constraint sets. + * Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets. */ @MetaschemaAssembly( description = "Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets.", name = "import", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class Import implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * A relative or absolute URI for retrieving an out-of-line Metaschema - * constraint definition. + * A relative or absolute URI for retrieving an out-of-line Metaschema constraint definition. */ @BoundFlag( description = "A relative or absolute URI for retrieving an out-of-line Metaschema constraint definition.", name = "href", required = true, - typeAdapter = UriReferenceAdapter.class) + typeAdapter = UriReferenceAdapter.class + ) private URI _href; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints.Import} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints.Import} instance with no metadata. */ public Import() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints.Import} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints.Import} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Import(IMetaschemaData data) { this.__metaschemaData = data; @@ -367,8 +328,7 @@ public IMetaschemaData getMetaschemaData() { * Get the {@code href} property. * *

- * A relative or absolute URI for retrieving an out-of-line Metaschema - * constraint definition. + * A relative or absolute URI for retrieving an out-of-line Metaschema constraint definition. * * @return the href value */ @@ -381,11 +341,10 @@ public URI getHref() { * Set the {@code href} property. * *

- * A relative or absolute URI for retrieving an out-of-line Metaschema - * constraint definition. + * A relative or absolute URI for retrieving an out-of-line Metaschema constraint definition. * * @param value - * the href value to set + * the href value to set */ public void setHref(@NonNull URI value) { _href = value; @@ -399,53 +358,53 @@ public String toString() { @MetaschemaAssembly( name = "definition-context", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class DefinitionContext implements IBoundObject { private final IMetaschemaData __metaschemaData; @BoundFlag( name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( name = "namespace", required = true, - typeAdapter = UriAdapter.class) + typeAdapter = UriAdapter.class + ) private URI _namespace; @BoundAssembly( useName = "constraints", - minOccurs = 1) + minOccurs = 1 + ) private AssemblyConstraints _constraints; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints.DefinitionContext} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints.DefinitionContext} instance with no metadata. */ public DefinitionContext() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints.DefinitionContext} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetaConstraints.DefinitionContext} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public DefinitionContext(IMetaschemaData data) { this.__metaschemaData = data; @@ -470,7 +429,7 @@ public String getName() { * Set the {@code name} property. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -490,7 +449,7 @@ public URI getNamespace() { * Set the {@code namespace} property. * * @param value - * the namespace value to set + * the namespace value to set */ public void setNamespace(@NonNull URI value) { _namespace = value; @@ -510,7 +469,7 @@ public AssemblyConstraints getConstraints() { * Set the {@code constraints} property. * * @param value - * the constraints value to set + * the constraints value to set */ public void setConstraints(@NonNull AssemblyConstraints value) { _constraints = value; @@ -520,8 +479,7 @@ public void setConstraints(@NonNull AssemblyConstraints value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -534,11 +492,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaMetapath.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaMetapath.java index 5dd01d31e..5cc378ccb 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaMetapath.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaMetapath.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -18,38 +17,35 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * A Metapath expression identifying the model node that the constraints will be - * applied to. + * A Metapath expression identifying the model node that the constraints will be applied to. */ @MetaschemaAssembly( description = "A Metapath expression identifying the model node that the constraints will be applied to.", name = "metaschema-metapath", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class MetaschemaMetapath implements IBoundObject { private final IMetaschemaData __metaschemaData; @BoundFlag( name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetapath} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetapath} instance with no metadata. */ public MetaschemaMetapath() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetapath} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaMetapath} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public MetaschemaMetapath(IMetaschemaData data) { this.__metaschemaData = data; @@ -74,7 +70,7 @@ public String getTarget() { * Set the {@code target} property. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaModelModule.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaModelModule.java index 8bf456cf7..a3b198ab9 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaModelModule.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaModelModule.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine; @@ -63,9 +62,9 @@ MetaschemaMetaConstraints.class, MetaschemaMetapath.class, MetapathContext.class - }) -public final class MetaschemaModelModule - extends AbstractBoundModule { + } +) +public final class MetaschemaModelModule extends AbstractBoundModule { private static final MarkupLine NAME = MarkupLine.fromMarkdown("Metaschema Model"); private static final String SHORT_NAME = "metaschema-model"; @@ -80,9 +79,9 @@ public final class MetaschemaModelModule * Construct a new module instance. * * @param importedModules - * modules imported by this module + * modules imported by this module * @param bindingContext - * the binding context to associate with this module + * the binding context to associate with this module */ public MetaschemaModelModule(List importedModules, IBindingContext bindingContext) { diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaModuleConstraints.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaModuleConstraints.java index da4ecc0f6..a37e6fd52 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaModuleConstraints.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/MetaschemaModuleConstraints.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -39,8 +38,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * Defines constraint rules to be applied to an existing set of Metaschema - * module-based models. + * Defines constraint rules to be applied to an existing set of Metaschema module-based models. */ @MetaschemaAssembly( formalName = "External Module Constraints", @@ -48,13 +46,8 @@ name = "metaschema-module-constraints", moduleClass = MetaschemaModelModule.class, rootName = "METASCHEMA-CONSTRAINTS", - valueConstraints = @ValueConstraints(lets = @Let(name = "deprecated-type-map", - target = "map { 'base64Binary':'base64','dateTime':'date-time','dateTime-with-timezone':'date-time-with-timezone','email':'email-address','nonNegativeInteger':'non-negative-integer','positiveInteger':'positive-integer' }"), - expect = @Expect(id = "metaschema-deprecated-types", formalName = "Avoid Deprecated Data Type Use", - description = "Ensure that the data type specified is not one of the legacy Metaschema data types which have been deprecated (i.e. base64Binary, dateTime, dateTime-with-timezone, email, nonNegativeInteger, positiveInteger).", - level = IConstraint.Level.WARNING, target = ".//matches/@datatype|.//(define-field|define-flag)/@as-type", - test = "not(data(.)=('base64Binary','dateTime','dateTime-with-timezone','email','nonNegativeInteger','positiveInteger'))", - message = "Use of the type '{ data(.) }' is deprecated. Use '{ $deprecated-type-map(data(.))}' instead."))) + valueConstraints = @ValueConstraints(lets = @Let(name = "deprecated-type-map", target = "map { 'base64Binary':'base64','dateTime':'date-time','dateTime-with-timezone':'date-time-with-timezone','email':'email-address','nonNegativeInteger':'non-negative-integer','positiveInteger':'positive-integer' }"), expect = @Expect(id = "metaschema-deprecated-types", formalName = "Avoid Deprecated Data Type Use", description = "Ensure that the data type specified is not one of the legacy Metaschema data types which have been deprecated (i.e. base64Binary, dateTime, dateTime-with-timezone, email, nonNegativeInteger, positiveInteger).", level = IConstraint.Level.WARNING, target = ".//matches/@datatype|.//(define-field|define-flag)/@as-type", test = "not(data(.)=('base64Binary','dateTime','dateTime-with-timezone','email','nonNegativeInteger','positiveInteger'))", message = "Use of the type '{ data(.) }' is deprecated. Use '{ $deprecated-type-map(data(.))}' instead.")) +) public class MetaschemaModuleConstraints implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -65,66 +58,64 @@ public class MetaschemaModuleConstraints implements IBoundObject { description = "The name of this constraint set.", useName = "name", minOccurs = 1, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _name; /** - * The version of this constraint set. A version string used to distinguish - * between multiple revisions of the same resource. + * The version of this constraint set. A version string used to distinguish between multiple revisions of the same resource. */ @BoundField( description = "The version of this constraint set. A version string used to distinguish between multiple revisions of the same resource.", useName = "version", minOccurs = 1, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _version; /** - * Declares a set of Metaschema constraints from an out-of-line resource to - * import, supporting composition of constraint sets. + * Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets. */ @BoundAssembly( description = "Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets.", useName = "import", maxOccurs = -1, - groupAs = @GroupAs(name = "imports", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "imports", inJson = JsonGroupAsBehavior.LIST) + ) private List _imports; /** - * Assigns a Metapath namespace to a prefix for use in a Metapath expression in - * a lexical qualified name. + * Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name. */ @BoundAssembly( formalName = "Metapath Namespace Declaration", description = "Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name.", useName = "namespace-binding", maxOccurs = -1, - groupAs = @GroupAs(name = "namespace-bindings", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "namespace-bindings", inJson = JsonGroupAsBehavior.LIST) + ) private List _namespaceBindings; @BoundAssembly( useName = "scope", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "scopes", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "scopes", inJson = JsonGroupAsBehavior.LIST) + ) private List _scopes; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints} instance with no metadata. */ public MetaschemaModuleConstraints() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public MetaschemaModuleConstraints(IMetaschemaData data) { this.__metaschemaData = data; @@ -155,7 +146,7 @@ public String getName() { * The name of this constraint set. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -165,8 +156,7 @@ public void setName(@NonNull String value) { * Get the {@code version} property. * *

- * The version of this constraint set. A version string used to distinguish - * between multiple revisions of the same resource. + * The version of this constraint set. A version string used to distinguish between multiple revisions of the same resource. * * @return the version value */ @@ -179,11 +169,10 @@ public String getVersion() { * Set the {@code version} property. * *

- * The version of this constraint set. A version string used to distinguish - * between multiple revisions of the same resource. + * The version of this constraint set. A version string used to distinguish between multiple revisions of the same resource. * * @param value - * the version value to set + * the version value to set */ public void setVersion(@NonNull String value) { _version = value; @@ -193,8 +182,7 @@ public void setVersion(@NonNull String value) { * Get the {@code import} property. * *

- * Declares a set of Metaschema constraints from an out-of-line resource to - * import, supporting composition of constraint sets. + * Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets. * * @return the import value */ @@ -210,11 +198,10 @@ public List getImports() { * Set the {@code import} property. * *

- * Declares a set of Metaschema constraints from an out-of-line resource to - * import, supporting composition of constraint sets. + * Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets. * * @param value - * the import value to set + * the import value to set */ public void setImports(@NonNull List value) { _imports = value; @@ -222,13 +209,11 @@ public void setImports(@NonNull List value) { /** * Add a new {@link Import} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addImport(Import item) { - Import value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Import value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_imports == null) { _imports = new LinkedList<>(); } @@ -237,13 +222,11 @@ public boolean addImport(Import item) { /** * Remove the first matching {@link Import} item from the underlying collection. - * - * @param item - * the item to remove + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeImport(Import item) { - Import value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Import value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _imports != null && _imports.remove(value); } @@ -251,8 +234,7 @@ public boolean removeImport(Import item) { * Get the metapath Namespace Declaration. * *

- * Assigns a Metapath namespace to a prefix for use in a Metapath expression in - * a lexical qualified name. + * Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name. * * @return the namespace-binding value */ @@ -268,11 +250,10 @@ public List getNamespaceBindings() { * Set the metapath Namespace Declaration. * *

- * Assigns a Metapath namespace to a prefix for use in a Metapath expression in - * a lexical qualified name. + * Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name. * * @param value - * the namespace-binding value to set + * the namespace-binding value to set */ public void setNamespaceBindings(@NonNull List value) { _namespaceBindings = value; @@ -280,13 +261,11 @@ public void setNamespaceBindings(@NonNull List value) { /** * Add a new {@link MetapathNamespace} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addNamespaceBinding(MetapathNamespace item) { - MetapathNamespace value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetapathNamespace value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_namespaceBindings == null) { _namespaceBindings = new LinkedList<>(); } @@ -294,15 +273,12 @@ public boolean addNamespaceBinding(MetapathNamespace item) { } /** - * Remove the first matching {@link MetapathNamespace} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link MetapathNamespace} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeNamespaceBinding(MetapathNamespace item) { - MetapathNamespace value = ObjectUtils.requireNonNull(item, "item cannot be null"); + MetapathNamespace value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _namespaceBindings != null && _namespaceBindings.remove(value); } @@ -323,7 +299,7 @@ public List getScopes() { * Set the {@code scope} property. * * @param value - * the scope value to set + * the scope value to set */ public void setScopes(@NonNull List value) { _scopes = value; @@ -331,13 +307,11 @@ public void setScopes(@NonNull List value) { /** * Add a new {@link Scope} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addScope(Scope item) { - Scope value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Scope value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_scopes == null) { _scopes = new LinkedList<>(); } @@ -346,13 +320,11 @@ public boolean addScope(Scope item) { /** * Remove the first matching {@link Scope} item from the underlying collection. - * - * @param item - * the item to remove + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeScope(Scope item) { - Scope value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Scope value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _scopes != null && _scopes.remove(value); } @@ -362,43 +334,39 @@ public String toString() { } /** - * Declares a set of Metaschema constraints from an out-of-line resource to - * import, supporting composition of constraint sets. + * Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets. */ @MetaschemaAssembly( description = "Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets.", name = "import", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class Import implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * A relative or absolute URI for retrieving an out-of-line Metaschema - * constraint definition. + * A relative or absolute URI for retrieving an out-of-line Metaschema constraint definition. */ @BoundFlag( description = "A relative or absolute URI for retrieving an out-of-line Metaschema constraint definition.", name = "href", required = true, - typeAdapter = UriReferenceAdapter.class) + typeAdapter = UriReferenceAdapter.class + ) private URI _href; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Import} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Import} instance with no metadata. */ public Import() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Import} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Import} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Import(IMetaschemaData data) { this.__metaschemaData = data; @@ -413,8 +381,7 @@ public IMetaschemaData getMetaschemaData() { * Get the {@code href} property. * *

- * A relative or absolute URI for retrieving an out-of-line Metaschema - * constraint definition. + * A relative or absolute URI for retrieving an out-of-line Metaschema constraint definition. * * @return the href value */ @@ -427,11 +394,10 @@ public URI getHref() { * Set the {@code href} property. * *

- * A relative or absolute URI for retrieving an out-of-line Metaschema - * constraint definition. + * A relative or absolute URI for retrieving an out-of-line Metaschema constraint definition. * * @param value - * the href value to set + * the href value to set */ public void setHref(@NonNull URI value) { _href = value; @@ -445,20 +411,23 @@ public String toString() { @MetaschemaAssembly( name = "scope", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class Scope implements IBoundObject { private final IMetaschemaData __metaschemaData; @BoundFlag( name = "metaschema-namespace", required = true, - typeAdapter = UriAdapter.class) + typeAdapter = UriAdapter.class + ) private URI _metaschemaNamespace; @BoundFlag( name = "metaschema-short-name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _metaschemaShortName; @BoundChoiceGroup( @@ -469,41 +438,39 @@ public static class Scope implements IBoundObject { @BoundGroupedAssembly(useName = "assembly", binding = Assembly.class), @BoundGroupedAssembly(useName = "field", binding = Field.class), @BoundGroupedAssembly(useName = "flag", binding = Flag.class) - }) + } + ) private List _constraints; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope} instance with no metadata. */ public Scope() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Scope(IMetaschemaData data) { this.__metaschemaData = data; @@ -528,7 +495,7 @@ public URI getMetaschemaNamespace() { * Set the {@code metaschema-namespace} property. * * @param value - * the metaschema-namespace value to set + * the metaschema-namespace value to set */ public void setMetaschemaNamespace(@NonNull URI value) { _metaschemaNamespace = value; @@ -548,7 +515,7 @@ public String getMetaschemaShortName() { * Set the {@code metaschema-short-name} property. * * @param value - * the metaschema-short-name value to set + * the metaschema-short-name value to set */ public void setMetaschemaShortName(@NonNull String value) { _metaschemaShortName = value; @@ -577,7 +544,7 @@ public List getConstraints() { * Items in this collection must implement {@link IValueConstraintsBase}. * * @param value - * the constraints items to set + * the constraints items to set */ public void setConstraints(@NonNull List value) { _constraints = value; @@ -597,7 +564,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -607,8 +574,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -621,11 +587,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; @@ -638,7 +603,8 @@ public String toString() { @MetaschemaAssembly( name = "assembly", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class Assembly implements IValueTargetedConstraintsBase { private final IMetaschemaData __metaschemaData; @@ -646,7 +612,8 @@ public static class Assembly implements IValueTargetedConstraintsBase { formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; @BoundChoiceGroup( @@ -654,41 +621,30 @@ public static class Assembly implements IValueTargetedConstraintsBase { maxOccurs = -1, groupAs = @GroupAs(name = "rules", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", - binding = TargetedAllowedValuesConstraint.class), - @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", - binding = TargetedExpectConstraint.class), - @BoundGroupedAssembly(formalName = "Targeted Index Has Key Constraint", useName = "index-has-key", - binding = TargetedIndexHasKeyConstraint.class), - @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", - binding = TargetedMatchesConstraint.class), - @BoundGroupedAssembly(formalName = "Targeted Unique Constraint", useName = "is-unique", - binding = TargetedIsUniqueConstraint.class), - @BoundGroupedAssembly(formalName = "Targeted Index Constraint", useName = "index", - binding = TargetedIndexConstraint.class), - @BoundGroupedAssembly(formalName = "Targeted Cardinality Constraint", useName = "has-cardinality", - binding = TargetedHasCardinalityConstraint.class), - @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", - binding = TargetedReportConstraint.class) - }) + @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", binding = TargetedAllowedValuesConstraint.class), + @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", binding = TargetedExpectConstraint.class), + @BoundGroupedAssembly(formalName = "Targeted Index Has Key Constraint", useName = "index-has-key", binding = TargetedIndexHasKeyConstraint.class), + @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", binding = TargetedMatchesConstraint.class), + @BoundGroupedAssembly(formalName = "Targeted Unique Constraint", useName = "is-unique", binding = TargetedIsUniqueConstraint.class), + @BoundGroupedAssembly(formalName = "Targeted Index Constraint", useName = "index", binding = TargetedIndexConstraint.class), + @BoundGroupedAssembly(formalName = "Targeted Cardinality Constraint", useName = "has-cardinality", binding = TargetedHasCardinalityConstraint.class), + @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", binding = TargetedReportConstraint.class) + } + ) private List _rules; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Assembly} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Assembly} instance with no metadata. */ public Assembly() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Assembly} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Assembly} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Assembly(IMetaschemaData data) { this.__metaschemaData = data; @@ -713,7 +669,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -743,7 +699,7 @@ public List getRules() { * Items in this collection must implement {@link ITargetedConstraintBase}. * * @param value - * the rules items to set + * the rules items to set */ public void setRules(@NonNull List value) { _rules = value; @@ -757,7 +713,8 @@ public String toString() { @MetaschemaAssembly( name = "field", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class Field implements IValueTargetedConstraintsBase { private final IMetaschemaData __metaschemaData; @@ -765,7 +722,8 @@ public static class Field implements IValueTargetedConstraintsBase { formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; @BoundChoiceGroup( @@ -773,35 +731,27 @@ public static class Field implements IValueTargetedConstraintsBase { maxOccurs = -1, groupAs = @GroupAs(name = "rules", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", - binding = TargetedAllowedValuesConstraint.class), - @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", - binding = TargetedExpectConstraint.class), - @BoundGroupedAssembly(formalName = "Targeted Index Has Key Constraint", useName = "index-has-key", - binding = TargetedIndexHasKeyConstraint.class), - @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", - binding = TargetedMatchesConstraint.class), - @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", - binding = TargetedReportConstraint.class) - }) + @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", binding = TargetedAllowedValuesConstraint.class), + @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", binding = TargetedExpectConstraint.class), + @BoundGroupedAssembly(formalName = "Targeted Index Has Key Constraint", useName = "index-has-key", binding = TargetedIndexHasKeyConstraint.class), + @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", binding = TargetedMatchesConstraint.class), + @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", binding = TargetedReportConstraint.class) + } + ) private List _rules; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Field} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Field} instance with no metadata. */ public Field() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Field} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Field} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Field(IMetaschemaData data) { this.__metaschemaData = data; @@ -826,7 +776,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -856,7 +806,7 @@ public List getRules() { * Items in this collection must implement {@link ITargetedConstraintBase}. * * @param value - * the rules items to set + * the rules items to set */ public void setRules(@NonNull List value) { _rules = value; @@ -870,7 +820,8 @@ public String toString() { @MetaschemaAssembly( name = "flag", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class + ) public static class Flag implements IValueConstraintsBase { private final IMetaschemaData __metaschemaData; @@ -878,7 +829,8 @@ public static class Flag implements IValueConstraintsBase { formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; @BoundChoiceGroup( @@ -886,35 +838,27 @@ public static class Flag implements IValueConstraintsBase { maxOccurs = -1, groupAs = @GroupAs(name = "rules", inJson = JsonGroupAsBehavior.LIST), assemblies = { - @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", - binding = FlagAllowedValues.class), - @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", - binding = FlagExpect.class), - @BoundGroupedAssembly(formalName = "Index Has Key Constraint", useName = "index-has-key", - binding = FlagIndexHasKey.class), - @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", - binding = FlagMatches.class), - @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", - binding = FlagReport.class) - }) + @BoundGroupedAssembly(formalName = "Allowed Values Constraint", useName = "allowed-values", binding = FlagAllowedValues.class), + @BoundGroupedAssembly(formalName = "Expect Condition Constraint", useName = "expect", binding = FlagExpect.class), + @BoundGroupedAssembly(formalName = "Index Has Key Constraint", useName = "index-has-key", binding = FlagIndexHasKey.class), + @BoundGroupedAssembly(formalName = "Value Matches Constraint", useName = "matches", binding = FlagMatches.class), + @BoundGroupedAssembly(formalName = "Report Condition Constraint", useName = "report", binding = FlagReport.class) + } + ) private List _rules; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Flag} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Flag} instance with no metadata. */ public Flag() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Flag} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraints.Scope.Flag} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Flag(IMetaschemaData data) { this.__metaschemaData = data; @@ -939,7 +883,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -969,7 +913,7 @@ public List getRules() { * Items in this collection must implement {@link IConstraintBase}. * * @param value - * the rules items to set + * the rules items to set */ public void setRules(@NonNull List value) { _rules = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Property.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Property.java index d2b40b2e4..44618d7dd 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Property.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Property.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -24,7 +23,8 @@ @MetaschemaAssembly( formalName = "Property", name = "property", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class Property implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -32,39 +32,38 @@ public class Property implements IBoundObject { formalName = "Property Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Property Namespace", name = "namespace", defaultValue = "http://csrc.nist.gov/ns/oscal/metaschema/1.0", - typeAdapter = UriAdapter.class) + typeAdapter = UriAdapter.class + ) private URI _namespace; @BoundFlag( formalName = "Property Value", name = "value", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _value; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Property} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Property} instance with no metadata. */ public Property() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Property} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Property} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Property(IMetaschemaData data) { this.__metaschemaData = data; @@ -89,7 +88,7 @@ public String getName() { * Set the property Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -109,7 +108,7 @@ public URI getNamespace() { * Set the property Namespace. * * @param value - * the namespace value to set + * the namespace value to set */ public void setNamespace(@Nullable URI value) { _namespace = value; @@ -129,7 +128,7 @@ public String getValue() { * Set the property Value. * * @param value - * the value value to set + * the value value to set */ public void setValue(@NonNull String value) { _value = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Remarks.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Remarks.java index 3e130041b..179238151 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Remarks.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/Remarks.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.Nullable; @@ -25,20 +24,19 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @MetaschemaField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", name = "remarks", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class Remarks implements IBoundObject { private final IMetaschemaData __metaschemaData; /** - * Mark as ‘XML’ for XML-only or ‘JSON’ for JSON-only - * remarks. + * Mark as ‘XML’ for XML-only or ‘JSON’ for JSON-only remarks. */ @BoundFlag( formalName = "Remark Class", @@ -46,33 +44,28 @@ public class Remarks implements IBoundObject { name = "class", defaultValue = "ALL", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "XML", description = "The remark applies to only XML representations."), - @AllowedValue(value = "JSON", description = "The remark applies to only JSON and YAML representations."), - @AllowedValue(value = "ALL", description = "The remark applies to all representations.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "XML", description = "The remark applies to only XML representations."), @AllowedValue(value = "JSON", description = "The remark applies to only JSON and YAML representations."), @AllowedValue(value = "ALL", description = "The remark applies to all representations.")})) + ) private String _clazz; @BoundFieldValue( valueKeyName = "remark", - typeAdapter = MarkupMultilineAdapter.class) + typeAdapter = MarkupMultilineAdapter.class + ) private MarkupMultiline _remark; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Remarks} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Remarks} instance with no metadata. */ public Remarks() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Remarks} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.Remarks} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Remarks(IMetaschemaData data) { this.__metaschemaData = data; @@ -87,8 +80,7 @@ public IMetaschemaData getMetaschemaData() { * Get the remark Class. * *

- * Mark as ‘XML’ for XML-only or ‘JSON’ for JSON-only - * remarks. + * Mark as ‘XML’ for XML-only or ‘JSON’ for JSON-only remarks. * * @return the class value, or {@code null} if not set */ @@ -101,11 +93,10 @@ public String getClazz() { * Set the remark Class. * *

- * Mark as ‘XML’ for XML-only or ‘JSON’ for JSON-only - * remarks. + * Mark as ‘XML’ for XML-only or ‘JSON’ for JSON-only remarks. * * @param value - * the class value to set + * the class value to set */ public void setClazz(@Nullable String value) { _clazz = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedAllowedValuesConstraint.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedAllowedValuesConstraint.java index 14292be45..39913be26 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedAllowedValuesConstraint.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedAllowedValuesConstraint.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -35,14 +34,16 @@ @MetaschemaAssembly( formalName = "Allowed Values Constraint", name = "targeted-allowed-values-constraint", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class TargetedAllowedValuesConstraint implements IBoundObject, ITargetedConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -50,17 +51,8 @@ public class TargetedAllowedValuesConstraint implements IBoundObject, ITargetedC name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( @@ -68,14 +60,12 @@ public class TargetedAllowedValuesConstraint implements IBoundObject, ITargetedC name = "allow-other", defaultValue = "no", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "no", description = "Other value are not allowed."), - @AllowedValue(value = "yes", description = "Other values are allowed.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "no", description = "Other value are not allowed."), @AllowedValue(value = "yes", description = "Other values are allowed.")})) + ) private String _allowOther; /** - * Determines if the given enumerated values may be extended by other allowed - * value constraints. + * Determines if the given enumerated values may be extended by other allowed value constraints. */ @BoundFlag( formalName = "Allow Extension?", @@ -83,18 +73,16 @@ public class TargetedAllowedValuesConstraint implements IBoundObject, ITargetedC name = "extensible", defaultValue = "external", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { - @AllowedValue(value = "model", description = "Can be extended by constraints within the same module."), - @AllowedValue(value = "external", description = "Can be extended by external constraints."), - @AllowedValue(value = "none", description = "Cannot be extended.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "model", description = "Can be extended by constraints within the same module."), @AllowedValue(value = "external", description = "Can be extended by external constraints."), @AllowedValue(value = "none", description = "Cannot be extended.")})) + ) private String _extensible; @BoundFlag( formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** @@ -104,25 +92,27 @@ public class TargetedAllowedValuesConstraint implements IBoundObject, ITargetedC formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( @@ -130,35 +120,32 @@ public class TargetedAllowedValuesConstraint implements IBoundObject, ITargetedC useName = "enum", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "enums", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "enums", inJson = JsonGroupAsBehavior.LIST) + ) private List _enums; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedAllowedValuesConstraint} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedAllowedValuesConstraint} instance with no metadata. */ public TargetedAllowedValuesConstraint() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedAllowedValuesConstraint} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedAllowedValuesConstraint} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TargetedAllowedValuesConstraint(IMetaschemaData data) { this.__metaschemaData = data; @@ -184,7 +171,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -205,7 +192,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -225,7 +212,7 @@ public String getAllowOther() { * Set the allow Non-Enumerated Values?. * * @param value - * the allow-other value to set + * the allow-other value to set */ public void setAllowOther(@Nullable String value) { _allowOther = value; @@ -235,8 +222,7 @@ public void setAllowOther(@Nullable String value) { * Get the allow Extension?. * *

- * Determines if the given enumerated values may be extended by other allowed - * value constraints. + * Determines if the given enumerated values may be extended by other allowed value constraints. * * @return the extensible value, or {@code null} if not set */ @@ -249,11 +235,10 @@ public String getExtensible() { * Set the allow Extension?. * *

- * Determines if the given enumerated values may be extended by other allowed - * value constraints. + * Determines if the given enumerated values may be extended by other allowed value constraints. * * @param value - * the extensible value to set + * the extensible value to set */ public void setExtensible(@Nullable String value) { _extensible = value; @@ -274,7 +259,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -301,7 +286,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -311,8 +296,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -326,11 +310,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -354,7 +337,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -362,13 +345,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -376,15 +357,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -405,7 +383,7 @@ public List getEnums() { * Set the allowed Value Enumeration. * * @param value - * the enum value to set + * the enum value to set */ public void setEnums(@NonNull List value) { _enums = value; @@ -413,13 +391,11 @@ public void setEnums(@NonNull List value) { /** * Add a new {@link ConstraintValueEnum} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addEnum(ConstraintValueEnum item) { - ConstraintValueEnum value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ConstraintValueEnum value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_enums == null) { _enums = new LinkedList<>(); } @@ -427,15 +403,12 @@ public boolean addEnum(ConstraintValueEnum item) { } /** - * Remove the first matching {@link ConstraintValueEnum} item from the - * underlying collection. - * - * @param item - * the item to remove + * Remove the first matching {@link ConstraintValueEnum} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeEnum(ConstraintValueEnum item) { - ConstraintValueEnum value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ConstraintValueEnum value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _enums != null && _enums.remove(value); } @@ -443,8 +416,7 @@ public boolean removeEnum(ConstraintValueEnum item) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -458,11 +430,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedExpectConstraint.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedExpectConstraint.java index 775e39d7d..d1aa9e40e 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedExpectConstraint.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedExpectConstraint.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -36,15 +35,16 @@ @MetaschemaAssembly( formalName = "Expect Condition Constraint", name = "targeted-expect-constraint", - moduleClass = MetaschemaModelModule.class) -public class TargetedExpectConstraint - implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { + moduleClass = MetaschemaModelModule.class +) +public class TargetedExpectConstraint implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -52,31 +52,24 @@ public class TargetedExpectConstraint name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Expect Test Condition", name = "test", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _test; @BoundFlag( formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** @@ -86,59 +79,58 @@ public class TargetedExpectConstraint formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedExpectConstraint} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedExpectConstraint} instance with no metadata. */ public TargetedExpectConstraint() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedExpectConstraint} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedExpectConstraint} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TargetedExpectConstraint(IMetaschemaData data) { this.__metaschemaData = data; @@ -164,7 +156,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -185,7 +177,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -205,7 +197,7 @@ public String getTest() { * Set the expect Test Condition. * * @param value - * the test value to set + * the test value to set */ public void setTest(@NonNull String value) { _test = value; @@ -226,7 +218,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -253,7 +245,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -263,8 +255,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -278,11 +269,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -306,7 +296,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -314,13 +304,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -328,15 +316,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -355,7 +340,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -365,8 +350,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -380,11 +364,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedHasCardinalityConstraint.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedHasCardinalityConstraint.java index 199ae1c71..5026ba3fd 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedHasCardinalityConstraint.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedHasCardinalityConstraint.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -39,15 +38,16 @@ @MetaschemaAssembly( formalName = "Targeted Cardinality Constraint", name = "targeted-has-cardinality-constraint", - moduleClass = MetaschemaModelModule.class) -public class TargetedHasCardinalityConstraint - implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { + moduleClass = MetaschemaModelModule.class +) +public class TargetedHasCardinalityConstraint implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -55,38 +55,31 @@ public class TargetedHasCardinalityConstraint name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Minimum Occurrence", name = "min-occurs", - typeAdapter = NonNegativeIntegerAdapter.class) + typeAdapter = NonNegativeIntegerAdapter.class + ) private BigInteger _minOccurs; @BoundFlag( formalName = "Maximum Occurrence", name = "max-occurs", typeAdapter = StringAdapter.class, - valueConstraints = @ValueConstraints( - matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$"))) + valueConstraints = @ValueConstraints(matches = @Matches(level = IConstraint.Level.ERROR, pattern = "^[1-9][0-9]*|unbounded$")) + ) private String _maxOccurs; @BoundFlag( formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** @@ -96,59 +89,58 @@ public class TargetedHasCardinalityConstraint formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedHasCardinalityConstraint} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedHasCardinalityConstraint} instance with no metadata. */ public TargetedHasCardinalityConstraint() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedHasCardinalityConstraint} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedHasCardinalityConstraint} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TargetedHasCardinalityConstraint(IMetaschemaData data) { this.__metaschemaData = data; @@ -174,7 +166,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -195,7 +187,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -215,7 +207,7 @@ public BigInteger getMinOccurs() { * Set the minimum Occurrence. * * @param value - * the min-occurs value to set + * the min-occurs value to set */ public void setMinOccurs(@Nullable BigInteger value) { _minOccurs = value; @@ -235,7 +227,7 @@ public String getMaxOccurs() { * Set the maximum Occurrence. * * @param value - * the max-occurs value to set + * the max-occurs value to set */ public void setMaxOccurs(@Nullable String value) { _maxOccurs = value; @@ -256,7 +248,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -283,7 +275,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -293,8 +285,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -308,11 +299,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -336,7 +326,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -344,13 +334,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -358,15 +346,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -385,7 +370,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -395,8 +380,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -410,11 +394,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIndexConstraint.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIndexConstraint.java index c376d7efe..a91efcf12 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIndexConstraint.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIndexConstraint.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -36,15 +35,16 @@ @MetaschemaAssembly( formalName = "Targeted Index Constraint", name = "targeted-index-constraint", - moduleClass = MetaschemaModelModule.class) -public class TargetedIndexConstraint - implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { + moduleClass = MetaschemaModelModule.class +) +public class TargetedIndexConstraint implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -52,31 +52,24 @@ public class TargetedIndexConstraint name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Index Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** @@ -86,25 +79,27 @@ public class TargetedIndexConstraint formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundAssembly( @@ -112,41 +107,39 @@ public class TargetedIndexConstraint useName = "key-field", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "key-fields", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "key-fields", inJson = JsonGroupAsBehavior.LIST) + ) private List _keyFields; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIndexConstraint} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIndexConstraint} instance with no metadata. */ public TargetedIndexConstraint() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIndexConstraint} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIndexConstraint} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TargetedIndexConstraint(IMetaschemaData data) { this.__metaschemaData = data; @@ -172,7 +165,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -193,7 +186,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -213,7 +206,7 @@ public String getName() { * Set the index Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -234,7 +227,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -261,7 +254,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -271,8 +264,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -286,11 +278,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -314,7 +305,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -322,13 +313,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -336,15 +325,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -365,7 +351,7 @@ public List getKeyFields() { * Set the key Constraint Field. * * @param value - * the key-field value to set + * the key-field value to set */ public void setKeyFields(@NonNull List value) { _keyFields = value; @@ -373,13 +359,11 @@ public void setKeyFields(@NonNull List value) { /** * Add a new {@link KeyConstraintField} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addKeyField(KeyConstraintField item) { - KeyConstraintField value = ObjectUtils.requireNonNull(item, "item cannot be null"); + KeyConstraintField value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_keyFields == null) { _keyFields = new LinkedList<>(); } @@ -387,15 +371,12 @@ public boolean addKeyField(KeyConstraintField item) { } /** - * Remove the first matching {@link KeyConstraintField} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link KeyConstraintField} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeKeyField(KeyConstraintField item) { - KeyConstraintField value = ObjectUtils.requireNonNull(item, "item cannot be null"); + KeyConstraintField value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _keyFields != null && _keyFields.remove(value); } @@ -414,7 +395,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -424,8 +405,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -439,11 +419,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIndexHasKeyConstraint.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIndexHasKeyConstraint.java index c00d91230..ef68bf203 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIndexHasKeyConstraint.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIndexHasKeyConstraint.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -36,15 +35,16 @@ @MetaschemaAssembly( formalName = "Targeted Index Has Key Constraint", name = "targeted-index-has-key-constraint", - moduleClass = MetaschemaModelModule.class) -public class TargetedIndexHasKeyConstraint - implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { + moduleClass = MetaschemaModelModule.class +) +public class TargetedIndexHasKeyConstraint implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -52,31 +52,24 @@ public class TargetedIndexHasKeyConstraint name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Index Name", name = "name", required = true, - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; @BoundFlag( formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** @@ -86,25 +79,27 @@ public class TargetedIndexHasKeyConstraint formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundAssembly( @@ -112,41 +107,39 @@ public class TargetedIndexHasKeyConstraint useName = "key-field", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "key-fields", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "key-fields", inJson = JsonGroupAsBehavior.LIST) + ) private List _keyFields; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIndexHasKeyConstraint} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIndexHasKeyConstraint} instance with no metadata. */ public TargetedIndexHasKeyConstraint() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIndexHasKeyConstraint} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIndexHasKeyConstraint} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TargetedIndexHasKeyConstraint(IMetaschemaData data) { this.__metaschemaData = data; @@ -172,7 +165,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -193,7 +186,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -213,7 +206,7 @@ public String getName() { * Set the index Name. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -234,7 +227,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -261,7 +254,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -271,8 +264,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -286,11 +278,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -314,7 +305,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -322,13 +313,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -336,15 +325,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -365,7 +351,7 @@ public List getKeyFields() { * Set the key Constraint Field. * * @param value - * the key-field value to set + * the key-field value to set */ public void setKeyFields(@NonNull List value) { _keyFields = value; @@ -373,13 +359,11 @@ public void setKeyFields(@NonNull List value) { /** * Add a new {@link KeyConstraintField} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addKeyField(KeyConstraintField item) { - KeyConstraintField value = ObjectUtils.requireNonNull(item, "item cannot be null"); + KeyConstraintField value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_keyFields == null) { _keyFields = new LinkedList<>(); } @@ -387,15 +371,12 @@ public boolean addKeyField(KeyConstraintField item) { } /** - * Remove the first matching {@link KeyConstraintField} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link KeyConstraintField} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeKeyField(KeyConstraintField item) { - KeyConstraintField value = ObjectUtils.requireNonNull(item, "item cannot be null"); + KeyConstraintField value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _keyFields != null && _keyFields.remove(value); } @@ -414,7 +395,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -424,8 +405,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -439,11 +419,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIsUniqueConstraint.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIsUniqueConstraint.java index 77c62cbaf..22ac19555 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIsUniqueConstraint.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedIsUniqueConstraint.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -36,15 +35,16 @@ @MetaschemaAssembly( formalName = "Targeted Unique Constraint", name = "targeted-is-unique-constraint", - moduleClass = MetaschemaModelModule.class) -public class TargetedIsUniqueConstraint - implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { + moduleClass = MetaschemaModelModule.class +) +public class TargetedIsUniqueConstraint implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -52,24 +52,16 @@ public class TargetedIsUniqueConstraint name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** @@ -79,25 +71,27 @@ public class TargetedIsUniqueConstraint formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundAssembly( @@ -105,41 +99,39 @@ public class TargetedIsUniqueConstraint useName = "key-field", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "key-fields", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "key-fields", inJson = JsonGroupAsBehavior.LIST) + ) private List _keyFields; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIsUniqueConstraint} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIsUniqueConstraint} instance with no metadata. */ public TargetedIsUniqueConstraint() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIsUniqueConstraint} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedIsUniqueConstraint} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TargetedIsUniqueConstraint(IMetaschemaData data) { this.__metaschemaData = data; @@ -165,7 +157,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -186,7 +178,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -207,7 +199,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -234,7 +226,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -244,8 +236,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -259,11 +250,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -287,7 +277,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -295,13 +285,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -309,15 +297,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -338,7 +323,7 @@ public List getKeyFields() { * Set the key Constraint Field. * * @param value - * the key-field value to set + * the key-field value to set */ public void setKeyFields(@NonNull List value) { _keyFields = value; @@ -346,13 +331,11 @@ public void setKeyFields(@NonNull List value) { /** * Add a new {@link KeyConstraintField} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addKeyField(KeyConstraintField item) { - KeyConstraintField value = ObjectUtils.requireNonNull(item, "item cannot be null"); + KeyConstraintField value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_keyFields == null) { _keyFields = new LinkedList<>(); } @@ -360,15 +343,12 @@ public boolean addKeyField(KeyConstraintField item) { } /** - * Remove the first matching {@link KeyConstraintField} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link KeyConstraintField} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeKeyField(KeyConstraintField item) { - KeyConstraintField value = ObjectUtils.requireNonNull(item, "item cannot be null"); + KeyConstraintField value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _keyFields != null && _keyFields.remove(value); } @@ -387,7 +367,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -397,8 +377,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -412,11 +391,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedMatchesConstraint.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedMatchesConstraint.java index b5f2a78d0..8abefd1d7 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedMatchesConstraint.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedMatchesConstraint.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -36,15 +35,16 @@ @MetaschemaAssembly( formalName = "Value Matches Constraint", name = "targeted-matches-constraint", - moduleClass = MetaschemaModelModule.class) -public class TargetedMatchesConstraint - implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { + moduleClass = MetaschemaModelModule.class +) +public class TargetedMatchesConstraint implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -52,96 +52,31 @@ public class TargetedMatchesConstraint name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Matches Regular Expression", name = "regex", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _regex; @BoundFlag( formalName = "Matches Data Type", name = "datatype", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - allowOthers = true, - values = { @AllowedValue(value = "base64", - description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), - @AllowedValue(value = "boolean", - description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), - @AllowedValue(value = "date", - description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), - @AllowedValue(value = "date-time", - description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), - @AllowedValue(value = "date-time-with-timezone", - description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), - @AllowedValue(value = "date-with-timezone", - description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), - @AllowedValue(value = "day-time-duration", - description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), - @AllowedValue(value = "decimal", - description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), - @AllowedValue(value = "email-address", - description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), - @AllowedValue(value = "hostname", - description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), - @AllowedValue(value = "integer", - description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), - @AllowedValue(value = "ip-v4-address", - description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), - @AllowedValue(value = "ip-v6-address", - description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), - @AllowedValue(value = "non-negative-integer", - description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), - @AllowedValue(value = "positive-integer", - description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), - @AllowedValue(value = "string", - description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), - @AllowedValue(value = "token", - description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), - @AllowedValue(value = "uri", - description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), - @AllowedValue(value = "uri-reference", - description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), - @AllowedValue(value = "uuid", - description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), - @AllowedValue(value = "base64Binary", - description = "An old name which is deprecated for use in favor of the 'base64' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime", - description = "An old name which is deprecated for use in favor of the 'date-time' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "dateTime-with-timezone", - description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "email", - description = "An old name which is deprecated for use in favor of the 'email-address' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "nonNegativeInteger", - description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", - deprecatedVersion = "1.0.0"), - @AllowedValue(value = "positiveInteger", - description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", - deprecatedVersion = "1.0.0") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, allowOthers = true, values = {@AllowedValue(value = "base64", description = "The [base64](https://framework.metaschema.dev/specification/datatypes/#base64) data type."), @AllowedValue(value = "boolean", description = "The [boolean](https://framework.metaschema.dev/specification/datatypes/#boolean) data type."), @AllowedValue(value = "date", description = "The [date](https://framework.metaschema.dev/specification/datatypes/#date) data type."), @AllowedValue(value = "date-time", description = "The [date-time](https://framework.metaschema.dev/specification/datatypes/#date-time) data type."), @AllowedValue(value = "date-time-with-timezone", description = "The [date-time-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-time-with-timezone) data type."), @AllowedValue(value = "date-with-timezone", description = "The [date-with-timezone](https://framework.metaschema.dev/specification/datatypes/#date-with-timezone) data type."), @AllowedValue(value = "day-time-duration", description = "The [day-time-duration](https://framework.metaschema.dev/specification/datatypes/#day-time-duration) data type."), @AllowedValue(value = "decimal", description = "The [decimal](https://framework.metaschema.dev/specification/datatypes/#decimal) data type."), @AllowedValue(value = "email-address", description = "The [email-address](https://framework.metaschema.dev/specification/datatypes/#email-address) data type."), @AllowedValue(value = "hostname", description = "The [hostname](https://framework.metaschema.dev/specification/datatypes/#hostname) data type."), @AllowedValue(value = "integer", description = "The [integer](https://framework.metaschema.dev/specification/datatypes/#integer) data type."), @AllowedValue(value = "ip-v4-address", description = "The [ip-v4-address](https://framework.metaschema.dev/specification/datatypes/#ip-v4-address) data type."), @AllowedValue(value = "ip-v6-address", description = "The [ip-v6-address](https://framework.metaschema.dev/specification/datatypes/#ip-v6-address) data type."), @AllowedValue(value = "non-negative-integer", description = "The [non-negative-integer](https://framework.metaschema.dev/specification/datatypes/#non-negative-integer) data type."), @AllowedValue(value = "positive-integer", description = "The [positive-integer](https://framework.metaschema.dev/specification/datatypes/#positive-integer) data type."), @AllowedValue(value = "string", description = "The [string](https://framework.metaschema.dev/specification/datatypes/#string) data type."), @AllowedValue(value = "token", description = "The [token](https://framework.metaschema.dev/specification/datatypes/#token) data type."), @AllowedValue(value = "uri", description = "The [uri](https://framework.metaschema.dev/specification/datatypes/#uri) data type."), @AllowedValue(value = "uri-reference", description = "The [uri-reference](https://framework.metaschema.dev/specification/datatypes/#uri-reference) data type."), @AllowedValue(value = "uuid", description = "The [uuid](https://framework.metaschema.dev/specification/datatypes/#uuid) data type."), @AllowedValue(value = "base64Binary", description = "An old name which is deprecated for use in favor of the 'base64' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime", description = "An old name which is deprecated for use in favor of the 'date-time' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "dateTime-with-timezone", description = "An old name which is deprecated for use in favor of the 'date-time-with-timezone' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "email", description = "An old name which is deprecated for use in favor of the 'email-address' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "nonNegativeInteger", description = "An old name which is deprecated for use in favor of the 'non-negative-integer' data type.", deprecatedVersion = "1.0.0"), @AllowedValue(value = "positiveInteger", description = "An old name which is deprecated for use in favor of the 'positive-integer' data type.", deprecatedVersion = "1.0.0")})) + ) private String _datatype; @BoundFlag( formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** @@ -151,59 +86,58 @@ public class TargetedMatchesConstraint formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedMatchesConstraint} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedMatchesConstraint} instance with no metadata. */ public TargetedMatchesConstraint() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedMatchesConstraint} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedMatchesConstraint} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TargetedMatchesConstraint(IMetaschemaData data) { this.__metaschemaData = data; @@ -229,7 +163,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -250,7 +184,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -270,7 +204,7 @@ public String getRegex() { * Set the matches Regular Expression. * * @param value - * the regex value to set + * the regex value to set */ public void setRegex(@Nullable String value) { _regex = value; @@ -290,7 +224,7 @@ public String getDatatype() { * Set the matches Data Type. * * @param value - * the datatype value to set + * the datatype value to set */ public void setDatatype(@Nullable String value) { _datatype = value; @@ -311,7 +245,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -338,7 +272,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -348,8 +282,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -363,11 +296,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -391,7 +323,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -399,13 +331,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -413,15 +343,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -440,7 +367,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -450,8 +377,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -465,11 +391,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedReportConstraint.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedReportConstraint.java index ea9e3025a..6682766b6 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedReportConstraint.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedReportConstraint.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.NonNull; @@ -36,15 +35,16 @@ @MetaschemaAssembly( formalName = "Report Condition Constraint", name = "targeted-report-constraint", - moduleClass = MetaschemaModelModule.class) -public class TargetedReportConstraint - implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { + moduleClass = MetaschemaModelModule.class +) +public class TargetedReportConstraint implements IBoundObject, ITargetedConstraintBase, IConfigurableMessageConstraintBase { private final IMetaschemaData __metaschemaData; @BoundFlag( formalName = "Constraint Identifier", name = "id", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _id; @BoundFlag( @@ -52,31 +52,24 @@ public class TargetedReportConstraint name = "level", defaultValue = "ERROR", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "CRITICAL", - description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), - @AllowedValue(value = "ERROR", - description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), - @AllowedValue(value = "WARNING", - description = "A violation of the constraint represents a potential issue with the content."), - @AllowedValue(value = "INFORMATIONAL", - description = "A violation of the constraint represents a point of interest."), - @AllowedValue(value = "DEBUG", - description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "CRITICAL", description = "A violation of the constraint represents a serious fault in the content that will prevent typical use of the content."), @AllowedValue(value = "ERROR", description = "A violation of the constraint represents a fault in the content. This may include issues around compatibility, integrity, consistency, etc."), @AllowedValue(value = "WARNING", description = "A violation of the constraint represents a potential issue with the content."), @AllowedValue(value = "INFORMATIONAL", description = "A violation of the constraint represents a point of interest."), @AllowedValue(value = "DEBUG", description = "A violation of the constraint represents a fault in the content that may warrant review by a developer when performing model or tool development.")})) + ) private String _level; @BoundFlag( formalName = "Report Test Condition", name = "test", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _test; @BoundFlag( formalName = "Constraint Target Metapath Expression", name = "target", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _target; /** @@ -86,59 +79,58 @@ public class TargetedReportConstraint formalName = "Formal Name", description = "A formal name for the data construct, to be presented in documentation.", useName = "formal-name", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _formalName; /** - * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. */ @BoundField( formalName = "Description", description = "A short description of the data construct's purpose, describing the constructs semantics.", useName = "description", - typeAdapter = MarkupLineAdapter.class) + typeAdapter = MarkupLineAdapter.class + ) private MarkupLine _description; @BoundAssembly( formalName = "Property", useName = "prop", maxOccurs = -1, - groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST) + ) private List _props; @BoundField( formalName = "Constraint Condition Violation Message", useName = "message", - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _message; /** - * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. */ @BoundField( formalName = "Remarks", description = "Any explanatory or helpful information to be provided about the remarks parent.", - useName = "remarks") + useName = "remarks" + ) private Remarks _remarks; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedReportConstraint} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedReportConstraint} instance with no metadata. */ public TargetedReportConstraint() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedReportConstraint} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.TargetedReportConstraint} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TargetedReportConstraint(IMetaschemaData data) { this.__metaschemaData = data; @@ -164,7 +156,7 @@ public String getId() { * Set the constraint Identifier. * * @param value - * the id value to set + * the id value to set */ public void setId(@Nullable String value) { _id = value; @@ -185,7 +177,7 @@ public String getLevel() { * Set the constraint Severity Level. * * @param value - * the level value to set + * the level value to set */ public void setLevel(@Nullable String value) { _level = value; @@ -205,7 +197,7 @@ public String getTest() { * Set the report Test Condition. * * @param value - * the test value to set + * the test value to set */ public void setTest(@NonNull String value) { _test = value; @@ -226,7 +218,7 @@ public String getTarget() { * Set the constraint Target Metapath Expression. * * @param value - * the target value to set + * the target value to set */ public void setTarget(@NonNull String value) { _target = value; @@ -253,7 +245,7 @@ public String getFormalName() { * A formal name for the data construct, to be presented in documentation. * * @param value - * the formal-name value to set + * the formal-name value to set */ public void setFormalName(@Nullable String value) { _formalName = value; @@ -263,8 +255,7 @@ public void setFormalName(@Nullable String value) { * Get the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @return the description value, or {@code null} if not set */ @@ -278,11 +269,10 @@ public MarkupLine getDescription() { * Set the description. * *

- * A short description of the data construct's purpose, describing the - * constructs semantics. + * A short description of the data construct's purpose, describing the constructs semantics. * * @param value - * the description value to set + * the description value to set */ public void setDescription(@Nullable MarkupLine value) { _description = value; @@ -306,7 +296,7 @@ public List getProps() { * Set the property. * * @param value - * the prop value to set + * the prop value to set */ public void setProps(@NonNull List value) { _props = value; @@ -314,13 +304,11 @@ public void setProps(@NonNull List value) { /** * Add a new {@link Property} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_props == null) { _props = new LinkedList<>(); } @@ -328,15 +316,12 @@ public boolean addProp(Property item) { } /** - * Remove the first matching {@link Property} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link Property} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeProp(Property item) { - Property value = ObjectUtils.requireNonNull(item, "item cannot be null"); + Property value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _props != null && _props.remove(value); } @@ -355,7 +340,7 @@ public String getMessage() { * Set the constraint Condition Violation Message. * * @param value - * the message value to set + * the message value to set */ public void setMessage(@Nullable String value) { _message = value; @@ -365,8 +350,7 @@ public void setMessage(@Nullable String value) { * Get the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @return the remarks value, or {@code null} if not set */ @@ -380,11 +364,10 @@ public Remarks getRemarks() { * Set the remarks. * *

- * Any explanatory or helpful information to be provided about the remarks - * parent. + * Any explanatory or helpful information to be provided about the remarks parent. * * @param value - * the remarks value to set + * the remarks value to set */ public void setRemarks(@Nullable Remarks value) { _remarks = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/UseName.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/UseName.java index aa8a6d930..d8a717b0e 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/UseName.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/UseName.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.databind.model.metaschema.binding; import edu.umd.cs.findbugs.annotations.Nullable; @@ -27,7 +26,8 @@ formalName = "Use Name", description = "Allows the name of the definition to be overridden.", name = "use-name", - moduleClass = MetaschemaModelModule.class) + moduleClass = MetaschemaModelModule.class +) public class UseName implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -38,30 +38,28 @@ public class UseName implements IBoundObject { formalName = "Numeric Index", description = "Used for binary formats instead of the textual name.", name = "index", - typeAdapter = NonNegativeIntegerAdapter.class) + typeAdapter = NonNegativeIntegerAdapter.class + ) private BigInteger _index; @BoundFieldValue( valueKeyName = "name", - typeAdapter = TokenAdapter.class) + typeAdapter = TokenAdapter.class + ) private String _name; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.UseName} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.UseName} instance with no metadata. */ public UseName() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.UseName} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.databind.model.metaschema.binding.UseName} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public UseName(IMetaschemaData data) { this.__metaschemaData = data; @@ -92,7 +90,7 @@ public BigInteger getIndex() { * Used for binary formats instead of the textual name. * * @param value - * the index value to set + * the index value to set */ public void setIndex(@Nullable BigInteger value) { _index = value; diff --git a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/package-info.java b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/package-info.java index 8aecff4e7..161003f74 100644 --- a/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/package-info.java +++ b/databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/package-info.java @@ -5,17 +5,11 @@ // Generated from: ../../../../../../../../../../../../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml // Do not edit - changes will be lost when regenerated. /** - * Provides generated binding classes for the Metaschema Model Metaschema - * module(s). + * Provides generated Metaschema binding classes for module(s): Metaschema Model. *

- * Metaschema Model (version 1.0.0-rc.1) + * version 1.0.0-rc.1 */ - @gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaPackage(moduleClass = { - gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModelModule.class }) -@gov.nist.secauto.metaschema.databind.model.annotations.XmlSchema( - namespace = "http://csrc.nist.gov/ns/oscal/metaschema/1.0", - xmlns = { @gov.nist.secauto.metaschema.databind.model.annotations.XmlNs(prefix = "", - namespace = "http://csrc.nist.gov/ns/oscal/metaschema/1.0") }, - xmlElementFormDefault = gov.nist.secauto.metaschema.databind.model.annotations.XmlNsForm.QUALIFIED) + gov.nist.secauto.metaschema.databind.model.metaschema.binding.MetaschemaModelModule.class}) +@gov.nist.secauto.metaschema.databind.model.annotations.XmlSchema(namespace = "http://csrc.nist.gov/ns/oscal/metaschema/1.0", xmlns = {@gov.nist.secauto.metaschema.databind.model.annotations.XmlNs(prefix = "", namespace = "http://csrc.nist.gov/ns/oscal/metaschema/1.0")}, xmlElementFormDefault = gov.nist.secauto.metaschema.databind.model.annotations.XmlNsForm.QUALIFIED) package gov.nist.secauto.metaschema.databind.model.metaschema.binding; diff --git a/metaschema-testing/pom-bootstrap.xml b/metaschema-testing/pom-bootstrap.xml index 35f291f36..13bb135d7 100644 --- a/metaschema-testing/pom-bootstrap.xml +++ b/metaschema-testing/pom-bootstrap.xml @@ -27,6 +27,8 @@ + + ${project.basedir}/src/main/java org.apache.maven.plugins @@ -83,6 +85,47 @@ + + com.mycila + license-maven-plugin + + + add-license-headers + generate-sources + + format + + + + +

cc0-dedication.txt
+ + src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/**/*.java + + + + + + + + + net.revelc.code.formatter + formatter-maven-plugin + + + format-generated-sources + generate-sources + + format + + + + src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/**/*.java + + + + + diff --git a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/GenerateSchema.java b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/GenerateSchema.java index 1392be302..d30603ae8 100644 --- a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/GenerateSchema.java +++ b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/GenerateSchema.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../metaschema/unit-tests.yaml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.model.testing.testsuite; import edu.umd.cs.findbugs.annotations.NonNull; @@ -34,7 +33,8 @@ formalName = "Generate Schema", description = "Defines schema generation parameters and expected results.", name = "generate-schema", - moduleClass = MetaschemaTestSuiteModule.class) + moduleClass = MetaschemaTestSuiteModule.class +) public class GenerateSchema implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -47,9 +47,8 @@ public class GenerateSchema implements IBoundObject { name = "generation-result", defaultValue = "SUCCESS", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "SUCCESS", description = "Generation succeeded."), - @AllowedValue(value = "FAILURE", description = "Generation resulted in failure caused by some error.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "SUCCESS", description = "Generation succeeded."), @AllowedValue(value = "FAILURE", description = "Generation resulted in failure caused by some error.")})) + ) private String _generationResult; /** @@ -61,10 +60,8 @@ public class GenerateSchema implements IBoundObject { name = "validation-result", defaultValue = "VALID", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "VALID", description = "Validation succeeded."), - @AllowedValue(value = "INVALID", - description = "Validation resulted in failure caused by some content defect or error.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "VALID", description = "Validation succeeded."), @AllowedValue(value = "INVALID", description = "Validation resulted in failure caused by some content defect or error.")})) + ) private String _validationResult; /** @@ -74,7 +71,8 @@ public class GenerateSchema implements IBoundObject { formalName = "Metaschema", description = "Reference to a metaschema module to load.", useName = "metaschema", - minOccurs = 1) + minOccurs = 1 + ) private Metaschema _metaschema; /** @@ -85,25 +83,22 @@ public class GenerateSchema implements IBoundObject { description = "A schema generation comparison test case.", useName = "generation-case", maxOccurs = -1, - groupAs = @GroupAs(name = "generation-cases", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "generation-cases", inJson = JsonGroupAsBehavior.LIST) + ) private List _generationCases; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.GenerateSchema} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.GenerateSchema} instance with no metadata. */ public GenerateSchema() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.GenerateSchema} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.GenerateSchema} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public GenerateSchema(IMetaschemaData data) { this.__metaschemaData = data; @@ -134,7 +129,7 @@ public String getGenerationResult() { * The expected result of schema generation. * * @param value - * the generation-result value to set + * the generation-result value to set */ public void setGenerationResult(@Nullable String value) { _generationResult = value; @@ -160,7 +155,7 @@ public String getValidationResult() { * The expected result of content validation. * * @param value - * the validation-result value to set + * the validation-result value to set */ public void setValidationResult(@Nullable String value) { _validationResult = value; @@ -186,7 +181,7 @@ public Metaschema getMetaschema() { * Reference to a metaschema module to load. * * @param value - * the metaschema value to set + * the metaschema value to set */ public void setMetaschema(@NonNull Metaschema value) { _metaschema = value; @@ -215,7 +210,7 @@ public List getGenerationCases() { * A schema generation comparison test case. * * @param value - * the generation-case value to set + * the generation-case value to set */ public void setGenerationCases(@NonNull List value) { _generationCases = value; @@ -223,13 +218,11 @@ public void setGenerationCases(@NonNull List value) { /** * Add a new {@link GenerationCase} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addGenerationCase(GenerationCase item) { - GenerationCase value = ObjectUtils.requireNonNull(item, "item cannot be null"); + GenerationCase value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_generationCases == null) { _generationCases = new LinkedList<>(); } @@ -237,15 +230,12 @@ public boolean addGenerationCase(GenerationCase item) { } /** - * Remove the first matching {@link GenerationCase} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link GenerationCase} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeGenerationCase(GenerationCase item) { - GenerationCase value = ObjectUtils.requireNonNull(item, "item cannot be null"); + GenerationCase value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _generationCases != null && _generationCases.remove(value); } diff --git a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/GenerationCase.java b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/GenerationCase.java index 6fdd66936..46e015373 100644 --- a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/GenerationCase.java +++ b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/GenerationCase.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../metaschema/unit-tests.yaml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.model.testing.testsuite; import edu.umd.cs.findbugs.annotations.NonNull; @@ -31,7 +30,8 @@ formalName = "Generation Case", description = "A schema generation comparison test case.", name = "generation-case", - moduleClass = MetaschemaTestSuiteModule.class) + moduleClass = MetaschemaTestSuiteModule.class +) public class GenerationCase implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -43,10 +43,8 @@ public class GenerationCase implements IBoundObject { description = "The format of the source content.", name = "source-format", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "XML", description = "Content is XML."), - @AllowedValue(value = "JSON", description = "Content is JSON."), - @AllowedValue(value = "YAML", description = "Content is YAML.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "XML", description = "Content is XML."), @AllowedValue(value = "JSON", description = "Content is JSON."), @AllowedValue(value = "YAML", description = "Content is YAML.")})) + ) private String _sourceFormat; /** @@ -57,7 +55,8 @@ public class GenerationCase implements IBoundObject { description = "A URI reference to the expected schema file location.", name = "location", required = true, - typeAdapter = UriReferenceAdapter.class) + typeAdapter = UriReferenceAdapter.class + ) private URI _location; /** @@ -69,27 +68,22 @@ public class GenerationCase implements IBoundObject { name = "match-result", defaultValue = "MATCH", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = { - @AllowedValue(value = "MATCH", description = "The actual content matched the expected content."), - @AllowedValue(value = "MISMATCH", description = "The actual content did not match the expected content.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "MATCH", description = "The actual content matched the expected content."), @AllowedValue(value = "MISMATCH", description = "The actual content did not match the expected content.")})) + ) private String _matchResult; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.GenerationCase} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.GenerationCase} instance with no metadata. */ public GenerationCase() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.GenerationCase} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.GenerationCase} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public GenerationCase(IMetaschemaData data) { this.__metaschemaData = data; @@ -120,7 +114,7 @@ public String getSourceFormat() { * The format of the source content. * * @param value - * the source-format value to set + * the source-format value to set */ public void setSourceFormat(@Nullable String value) { _sourceFormat = value; @@ -146,7 +140,7 @@ public URI getLocation() { * A URI reference to the expected schema file location. * * @param value - * the location value to set + * the location value to set */ public void setLocation(@NonNull URI value) { _location = value; @@ -172,7 +166,7 @@ public String getMatchResult() { * The expected result of content comparison. * * @param value - * the match-result value to set + * the match-result value to set */ public void setMatchResult(@Nullable String value) { _matchResult = value; diff --git a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/Metaschema.java b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/Metaschema.java index 5fb2dcfab..77576a158 100644 --- a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/Metaschema.java +++ b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/Metaschema.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../metaschema/unit-tests.yaml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.model.testing.testsuite; import edu.umd.cs.findbugs.annotations.NonNull; @@ -25,7 +24,8 @@ formalName = "Metaschema", description = "Reference to a metaschema module to load.", name = "metaschema", - moduleClass = MetaschemaTestSuiteModule.class) + moduleClass = MetaschemaTestSuiteModule.class +) public class Metaschema implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -37,25 +37,22 @@ public class Metaschema implements IBoundObject { description = "A URI reference to the metaschema module location.", name = "location", required = true, - typeAdapter = UriReferenceAdapter.class) + typeAdapter = UriReferenceAdapter.class + ) private URI _location; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.Metaschema} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.Metaschema} instance with no metadata. */ public Metaschema() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.Metaschema} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.Metaschema} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public Metaschema(IMetaschemaData data) { this.__metaschemaData = data; @@ -86,7 +83,7 @@ public URI getLocation() { * A URI reference to the metaschema module location. * * @param value - * the location value to set + * the location value to set */ public void setLocation(@NonNull URI value) { _location = value; diff --git a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/MetaschemaTestSuiteModule.java b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/MetaschemaTestSuiteModule.java index 3be9be73d..a4fa8aa97 100644 --- a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/MetaschemaTestSuiteModule.java +++ b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/MetaschemaTestSuiteModule.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../metaschema/unit-tests.yaml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.model.testing.testsuite; import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine; @@ -28,9 +27,9 @@ Metaschema.class, ValidationCase.class, GenerationCase.class - }) -public final class MetaschemaTestSuiteModule - extends AbstractBoundModule { + } +) +public final class MetaschemaTestSuiteModule extends AbstractBoundModule { private static final MarkupLine NAME = MarkupLine.fromMarkdown("Metaschema Test Suite"); private static final String SHORT_NAME = "metaschema-test-suite"; @@ -45,9 +44,9 @@ public final class MetaschemaTestSuiteModule * Construct a new module instance. * * @param importedModules - * modules imported by this module + * modules imported by this module * @param bindingContext - * the binding context to associate with this module + * the binding context to associate with this module */ public MetaschemaTestSuiteModule(List importedModules, IBindingContext bindingContext) { diff --git a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestCollection.java b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestCollection.java index 6a879ed7e..f3dcbf264 100644 --- a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestCollection.java +++ b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestCollection.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../metaschema/unit-tests.yaml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.model.testing.testsuite; import edu.umd.cs.findbugs.annotations.NonNull; @@ -31,7 +30,8 @@ formalName = "Test Collection", description = "A collection of test scenarios located at a specific path.", name = "test-collection", - moduleClass = MetaschemaTestSuiteModule.class) + moduleClass = MetaschemaTestSuiteModule.class +) public class TestCollection implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -43,7 +43,8 @@ public class TestCollection implements IBoundObject { description = "A URI reference to the location of this test collection.", name = "location", required = true, - typeAdapter = UriReferenceAdapter.class) + typeAdapter = UriReferenceAdapter.class + ) private URI _location; /** @@ -54,7 +55,8 @@ public class TestCollection implements IBoundObject { description = "The name of this test collection.", name = "name", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _name; /** @@ -66,25 +68,22 @@ public class TestCollection implements IBoundObject { useName = "test-scenario", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "test-scenarios", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "test-scenarios", inJson = JsonGroupAsBehavior.LIST) + ) private List _testScenarios; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestCollection} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestCollection} instance with no metadata. */ public TestCollection() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestCollection} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestCollection} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TestCollection(IMetaschemaData data) { this.__metaschemaData = data; @@ -115,7 +114,7 @@ public URI getLocation() { * A URI reference to the location of this test collection. * * @param value - * the location value to set + * the location value to set */ public void setLocation(@NonNull URI value) { _location = value; @@ -141,7 +140,7 @@ public String getName() { * The name of this test collection. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -170,7 +169,7 @@ public List getTestScenarios() { * A test scenario that validates a metaschema and its content. * * @param value - * the test-scenario value to set + * the test-scenario value to set */ public void setTestScenarios(@NonNull List value) { _testScenarios = value; @@ -178,13 +177,11 @@ public void setTestScenarios(@NonNull List value) { /** * Add a new {@link TestScenario} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addTestScenario(TestScenario item) { - TestScenario value = ObjectUtils.requireNonNull(item, "item cannot be null"); + TestScenario value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_testScenarios == null) { _testScenarios = new LinkedList<>(); } @@ -192,15 +189,12 @@ public boolean addTestScenario(TestScenario item) { } /** - * Remove the first matching {@link TestScenario} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link TestScenario} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeTestScenario(TestScenario item) { - TestScenario value = ObjectUtils.requireNonNull(item, "item cannot be null"); + TestScenario value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _testScenarios != null && _testScenarios.remove(value); } diff --git a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestScenario.java b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestScenario.java index a42b31821..7e6439042 100644 --- a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestScenario.java +++ b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestScenario.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../metaschema/unit-tests.yaml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.model.testing.testsuite; import edu.umd.cs.findbugs.annotations.NonNull; @@ -30,7 +29,8 @@ formalName = "Test Scenario", description = "A test scenario that validates a metaschema and its content.", name = "test-scenario", - moduleClass = MetaschemaTestSuiteModule.class) + moduleClass = MetaschemaTestSuiteModule.class +) public class TestScenario implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -42,7 +42,8 @@ public class TestScenario implements IBoundObject { description = "The name of this test scenario.", name = "name", required = true, - typeAdapter = StringAdapter.class) + typeAdapter = StringAdapter.class + ) private String _name; /** @@ -51,7 +52,8 @@ public class TestScenario implements IBoundObject { @BoundAssembly( formalName = "Generate Schema", description = "Defines schema generation parameters and expected results.", - useName = "generate-schema") + useName = "generate-schema" + ) private GenerateSchema _generateSchema; /** @@ -62,25 +64,22 @@ public class TestScenario implements IBoundObject { description = "A content validation test case.", useName = "validation-case", maxOccurs = -1, - groupAs = @GroupAs(name = "validation-cases", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "validation-cases", inJson = JsonGroupAsBehavior.LIST) + ) private List _validationCases; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestScenario} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestScenario} instance with no metadata. */ public TestScenario() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestScenario} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestScenario} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TestScenario(IMetaschemaData data) { this.__metaschemaData = data; @@ -111,7 +110,7 @@ public String getName() { * The name of this test scenario. * * @param value - * the name value to set + * the name value to set */ public void setName(@NonNull String value) { _name = value; @@ -137,7 +136,7 @@ public GenerateSchema getGenerateSchema() { * Defines schema generation parameters and expected results. * * @param value - * the generate-schema value to set + * the generate-schema value to set */ public void setGenerateSchema(@Nullable GenerateSchema value) { _generateSchema = value; @@ -166,7 +165,7 @@ public List getValidationCases() { * A content validation test case. * * @param value - * the validation-case value to set + * the validation-case value to set */ public void setValidationCases(@NonNull List value) { _validationCases = value; @@ -174,13 +173,11 @@ public void setValidationCases(@NonNull List value) { /** * Add a new {@link ValidationCase} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addValidationCase(ValidationCase item) { - ValidationCase value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ValidationCase value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_validationCases == null) { _validationCases = new LinkedList<>(); } @@ -188,15 +185,12 @@ public boolean addValidationCase(ValidationCase item) { } /** - * Remove the first matching {@link ValidationCase} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link ValidationCase} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeValidationCase(ValidationCase item) { - ValidationCase value = ObjectUtils.requireNonNull(item, "item cannot be null"); + ValidationCase value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _validationCases != null && _validationCases.remove(value); } diff --git a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestSuite.java b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestSuite.java index 798d9f48e..0d6abc86b 100644 --- a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestSuite.java +++ b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/TestSuite.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../metaschema/unit-tests.yaml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.model.testing.testsuite; import edu.umd.cs.findbugs.annotations.NonNull; @@ -28,7 +27,8 @@ description = "The root element containing a collection of test collections.", name = "test-suite", moduleClass = MetaschemaTestSuiteModule.class, - rootName = "test-suite") + rootName = "test-suite" +) public class TestSuite implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -41,25 +41,22 @@ public class TestSuite implements IBoundObject { useName = "test-collection", minOccurs = 1, maxOccurs = -1, - groupAs = @GroupAs(name = "test-collections", inJson = JsonGroupAsBehavior.LIST)) + groupAs = @GroupAs(name = "test-collections", inJson = JsonGroupAsBehavior.LIST) + ) private List _testCollections; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestSuite} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestSuite} instance with no metadata. */ public TestSuite() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestSuite} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.TestSuite} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public TestSuite(IMetaschemaData data) { this.__metaschemaData = data; @@ -93,7 +90,7 @@ public List getTestCollections() { * A collection of test scenarios located at a specific path. * * @param value - * the test-collection value to set + * the test-collection value to set */ public void setTestCollections(@NonNull List value) { _testCollections = value; @@ -101,13 +98,11 @@ public void setTestCollections(@NonNull List value) { /** * Add a new {@link TestCollection} item to the underlying collection. - * - * @param item - * the item to add + * @param item the item to add * @return {@code true} */ public boolean addTestCollection(TestCollection item) { - TestCollection value = ObjectUtils.requireNonNull(item, "item cannot be null"); + TestCollection value = ObjectUtils.requireNonNull(item,"item cannot be null"); if (_testCollections == null) { _testCollections = new LinkedList<>(); } @@ -115,15 +110,12 @@ public boolean addTestCollection(TestCollection item) { } /** - * Remove the first matching {@link TestCollection} item from the underlying - * collection. - * - * @param item - * the item to remove + * Remove the first matching {@link TestCollection} item from the underlying collection. + * @param item the item to remove * @return {@code true} if the item was removed or {@code false} otherwise */ public boolean removeTestCollection(TestCollection item) { - TestCollection value = ObjectUtils.requireNonNull(item, "item cannot be null"); + TestCollection value = ObjectUtils.requireNonNull(item,"item cannot be null"); return _testCollections != null && _testCollections.remove(value); } diff --git a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/ValidationCase.java b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/ValidationCase.java index 83b36e62e..ade7c5517 100644 --- a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/ValidationCase.java +++ b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/ValidationCase.java @@ -4,7 +4,6 @@ */ // Generated from: ../../../../../../../../metaschema/unit-tests.yaml // Do not edit - changes will be lost when regenerated. - package gov.nist.secauto.metaschema.model.testing.testsuite; import edu.umd.cs.findbugs.annotations.NonNull; @@ -31,7 +30,8 @@ formalName = "Validation Case", description = "A content validation test case.", name = "validation-case", - moduleClass = MetaschemaTestSuiteModule.class) + moduleClass = MetaschemaTestSuiteModule.class +) public class ValidationCase implements IBoundObject { private final IMetaschemaData __metaschemaData; @@ -43,10 +43,8 @@ public class ValidationCase implements IBoundObject { description = "The format of the source content.", name = "source-format", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "XML", description = "Content is XML."), - @AllowedValue(value = "JSON", description = "Content is JSON."), - @AllowedValue(value = "YAML", description = "Content is YAML.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "XML", description = "Content is XML."), @AllowedValue(value = "JSON", description = "Content is JSON."), @AllowedValue(value = "YAML", description = "Content is YAML.")})) + ) private String _sourceFormat; /** @@ -57,7 +55,8 @@ public class ValidationCase implements IBoundObject { description = "A URI reference to the content file location.", name = "location", required = true, - typeAdapter = UriReferenceAdapter.class) + typeAdapter = UriReferenceAdapter.class + ) private URI _location; /** @@ -69,28 +68,22 @@ public class ValidationCase implements IBoundObject { name = "validation-result", defaultValue = "VALID", typeAdapter = TokenAdapter.class, - valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, - values = { @AllowedValue(value = "VALID", description = "Validation succeeded."), - @AllowedValue(value = "INVALID", - description = "Validation resulted in failure caused by some content defect or error.") }))) + valueConstraints = @ValueConstraints(allowedValues = @AllowedValues(level = IConstraint.Level.ERROR, values = {@AllowedValue(value = "VALID", description = "Validation succeeded."), @AllowedValue(value = "INVALID", description = "Validation resulted in failure caused by some content defect or error.")})) + ) private String _validationResult; /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.ValidationCase} - * instance with no metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.ValidationCase} instance with no metadata. */ public ValidationCase() { this(null); } /** - * Constructs a new - * {@code gov.nist.secauto.metaschema.model.testing.testsuite.ValidationCase} - * instance with the specified metadata. + * Constructs a new {@code gov.nist.secauto.metaschema.model.testing.testsuite.ValidationCase} instance with the specified metadata. * * @param data - * the metaschema data, or {@code null} if none + * the metaschema data, or {@code null} if none */ public ValidationCase(IMetaschemaData data) { this.__metaschemaData = data; @@ -121,7 +114,7 @@ public String getSourceFormat() { * The format of the source content. * * @param value - * the source-format value to set + * the source-format value to set */ public void setSourceFormat(@Nullable String value) { _sourceFormat = value; @@ -147,7 +140,7 @@ public URI getLocation() { * A URI reference to the content file location. * * @param value - * the location value to set + * the location value to set */ public void setLocation(@NonNull URI value) { _location = value; @@ -173,7 +166,7 @@ public String getValidationResult() { * The expected result of content validation. * * @param value - * the validation-result value to set + * the validation-result value to set */ public void setValidationResult(@Nullable String value) { _validationResult = value; diff --git a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/package-info.java b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/package-info.java index 27433d903..40ee442d7 100644 --- a/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/package-info.java +++ b/metaschema-testing/src/main/java/gov/nist/secauto/metaschema/model/testing/testsuite/package-info.java @@ -5,17 +5,11 @@ // Generated from: ../../../../../../../../metaschema/unit-tests.yaml // Do not edit - changes will be lost when regenerated. /** - * Provides generated binding classes for the Metaschema Test Suite Metaschema - * module(s). + * Provides generated Metaschema binding classes for module(s): Metaschema Test Suite. *

- * Metaschema Test Suite (version 1.0.0) + * version 1.0.0 */ - @gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaPackage(moduleClass = { - gov.nist.secauto.metaschema.model.testing.testsuite.MetaschemaTestSuiteModule.class }) -@gov.nist.secauto.metaschema.databind.model.annotations.XmlSchema( - namespace = "http://csrc.nist.gov/ns/metaschema/test-suite/1.0", - xmlns = { @gov.nist.secauto.metaschema.databind.model.annotations.XmlNs(prefix = "", - namespace = "http://csrc.nist.gov/ns/metaschema/test-suite/1.0") }, - xmlElementFormDefault = gov.nist.secauto.metaschema.databind.model.annotations.XmlNsForm.QUALIFIED) + gov.nist.secauto.metaschema.model.testing.testsuite.MetaschemaTestSuiteModule.class}) +@gov.nist.secauto.metaschema.databind.model.annotations.XmlSchema(namespace = "http://csrc.nist.gov/ns/metaschema/test-suite/1.0", xmlns = {@gov.nist.secauto.metaschema.databind.model.annotations.XmlNs(prefix = "", namespace = "http://csrc.nist.gov/ns/metaschema/test-suite/1.0")}, xmlElementFormDefault = gov.nist.secauto.metaschema.databind.model.annotations.XmlNsForm.QUALIFIED) package gov.nist.secauto.metaschema.model.testing.testsuite; diff --git a/pom.xml b/pom.xml index eb486b697..7ed8c426c 100644 --- a/pom.xml +++ b/pom.xml @@ -578,6 +578,7 @@ **/module-info.java + @@ -710,6 +711,12 @@ src/main/config/pmd/ruleset.xml + + + **/package-info.java +