public abstract class CycloneDxSchema extends Object
BomXmlGenerator, BomJsonGenerator, and Parser.
The class can be extended for other implementations as well.| Modifier and Type | Class and Description |
|---|---|
static class |
CycloneDxSchema.Version |
| Modifier and Type | Field and Description |
|---|---|
static String |
NS_BOM_10 |
static String |
NS_BOM_11 |
static String |
NS_BOM_12 |
static String |
NS_BOM_13 |
static String |
NS_BOM_14 |
static String |
NS_BOM_LATEST |
static String |
NS_DEPENDENCY_GRAPH_10 |
static CycloneDxSchema.Version |
VERSION_LATEST |
| Constructor and Description |
|---|
CycloneDxSchema() |
| Modifier and Type | Method and Description |
|---|---|
com.networknt.schema.JsonSchema |
getJsonSchema(CycloneDxSchema.Version schemaVersion,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Returns the CycloneDX JsonSchema for the specified schema version.
|
Schema |
getXmlSchema(CycloneDxSchema.Version schemaVersion)
Returns the CycloneDX XML Schema for the specified schema version.
|
Schema |
getXmlSchema(InputStream... inputStreams) |
public static final String NS_BOM_10
public static final String NS_BOM_11
public static final String NS_BOM_12
public static final String NS_BOM_13
public static final String NS_BOM_14
public static final String NS_DEPENDENCY_GRAPH_10
public static final String NS_BOM_LATEST
public static final CycloneDxSchema.Version VERSION_LATEST
public com.networknt.schema.JsonSchema getJsonSchema(CycloneDxSchema.Version schemaVersion, com.fasterxml.jackson.databind.ObjectMapper mapper) throws IOException
schemaVersion - The version to return the schema forIOException - when errors are encounteredpublic Schema getXmlSchema(CycloneDxSchema.Version schemaVersion) throws SAXException
schemaVersion - The version to return the schema forSAXException - a SAXExceptionpublic Schema getXmlSchema(InputStream... inputStreams) throws SAXException
SAXExceptionCopyright © 2017–2022 OWASP Foundation. All rights reserved.