001package org.schemastore.json.sarif.x210; 002 003import gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine; 004import gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline; 005import gov.nist.secauto.metaschema.databind.IBindingContext; 006import gov.nist.secauto.metaschema.databind.model.AbstractBoundModule; 007import gov.nist.secauto.metaschema.databind.model.IBoundModule; 008import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaModule; 009import java.lang.Override; 010import java.lang.String; 011import java.net.URI; 012import java.util.List; 013 014@MetaschemaModule( 015 assemblies = { 016 PropertyBag.class, 017 ToolComponent.class, 018 ReportingDescriptor.class, 019 MultiformatMessageString.class, 020 Tool.class, 021 Artifact.class, 022 Result.class, 023 ReportingDescriptorReference.class, 024 Message.class, 025 ArtifactLocation.class, 026 Location.class, 027 PhysicalLocation.class, 028 LogicalLocation.class, 029 Region.class, 030 ResultProvenance.class, 031 Run.class, 032 Sarif.class 033 } 034) 035public final class SarifModule extends AbstractBoundModule { 036 private static final MarkupLine NAME = MarkupLine.fromMarkdown("SARIF Metaschema Module"); 037 038 private static final String SHORT_NAME = "sarif"; 039 040 private static final String VERSION = "0.1.0"; 041 042 private static final URI XML_NAMESPACE = URI.create("https://json.schemastore.org/sarif/2.1.0"); 043 044 private static final URI JSON_BASE_URI = URI.create("https://json.schemastore.org/sarif-2.1.0.json"); 045 046 public SarifModule(List<? extends IBoundModule> importedModules, IBindingContext bindingContext) { 047 super(importedModules, bindingContext); 048 } 049 050 @Override 051 public MarkupLine getName() { 052 return NAME; 053 } 054 055 @Override 056 public String getShortName() { 057 return SHORT_NAME; 058 } 059 060 @Override 061 public String getVersion() { 062 return VERSION; 063 } 064 065 @Override 066 public URI getXmlNamespace() { 067 return XML_NAMESPACE; 068 } 069 070 @Override 071 public URI getJsonBaseUri() { 072 return JSON_BASE_URI; 073 } 074 075 @Override 076 public MarkupMultiline getRemarks() { 077 return null; 078 } 079}