public abstract class CycloneDxSchema extends Object
BomXmlGenerator,
BomJsonGenerator, and Parser. The class can be extended for other
implementations as well.| Modifier and Type | Field and Description |
|---|---|
static List<Version> |
ALL_VERSIONS |
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_15 |
static String |
NS_BOM_16 |
static String |
NS_BOM_LATEST |
static String |
NS_DEPENDENCY_GRAPH_10
Deprecated.
|
static Version |
VERSION_LATEST |
| Constructor and Description |
|---|
CycloneDxSchema() |
| Modifier and Type | Method and Description |
|---|---|
com.networknt.schema.JsonSchema |
getJsonSchema(Version schemaVersion,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Returns the CycloneDX JsonSchema for the specified schema version.
|
Schema |
getXmlSchema(InputStream... inputStreams) |
Schema |
getXmlSchema(Version schemaVersion)
Returns the CycloneDX XML Schema for the specified schema version.
|
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_BOM_15
public static final String NS_BOM_16
@Deprecated public static final String NS_DEPENDENCY_GRAPH_10
public static final String NS_BOM_LATEST
public static final Version VERSION_LATEST
public com.networknt.schema.JsonSchema getJsonSchema(Version schemaVersion, com.fasterxml.jackson.databind.ObjectMapper mapper) throws IOException
schemaVersion - The version to return the schema formapper - is to provide a Jackson ObjectMapperIOException - when errors are encounteredpublic Schema getXmlSchema(Version schemaVersion) throws SAXException
schemaVersion - The version to return the schema forSAXException - a SAXExceptionpublic Schema getXmlSchema(InputStream... inputStreams) throws SAXException
SAXExceptionCopyright © 2017–2025 OWASP Foundation. All rights reserved.