Class CycloneDxSchema
java.lang.Object
org.cyclonedx.CycloneDxSchema
- Direct Known Subclasses:
AbstractBomGenerator, JsonParser, XmlParser
CycloneDxSchema is a base class that provides schema information to
BomXmlGenerator,
BomJsonGenerator, and Parser. The class can be extended for other
implementations as well.- Since:
- 1.1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.networknt.schema.JsonSchemagetJsonSchema(Version schemaVersion, com.fasterxml.jackson.databind.ObjectMapper mapper) Returns the CycloneDX JsonSchema for the specified schema version.private InputStreamgetJsonSchemaAsStream(Version schemaVersion) getXmlSchema(InputStream... inputStreams) getXmlSchema(Version schemaVersion) Returns the CycloneDX XML Schema for the specified schema version.private SchemaReturns the CycloneDX XML Schema from the specifications XSD.private SchemaReturns the CycloneDX XML Schema from the specifications XSD.private SchemaReturns the CycloneDX XML Schema from the specifications XSD.private SchemaReturns the CycloneDX XML Schema from the specifications XSD.private SchemaReturns the CycloneDX XML Schema from the specifications XSD.private SchemaReturns the CycloneDX XML Schema from the specifications XSD.private SchemaReturns the CycloneDX XML Schema from the specifications XSD.
-
Field Details
-
NS_BOM_10
- See Also:
-
NS_BOM_11
- See Also:
-
NS_BOM_12
- See Also:
-
NS_BOM_13
- See Also:
-
NS_BOM_14
- See Also:
-
NS_BOM_15
- See Also:
-
NS_BOM_16
- See Also:
-
NS_DEPENDENCY_GRAPH_10
-
NS_BOM_LATEST
- See Also:
-
VERSION_LATEST
-
ALL_VERSIONS
-
-
Constructor Details
-
CycloneDxSchema
public CycloneDxSchema()
-
-
Method Details
-
getJsonSchema
public com.networknt.schema.JsonSchema getJsonSchema(Version schemaVersion, com.fasterxml.jackson.databind.ObjectMapper mapper) throws IOException Returns the CycloneDX JsonSchema for the specified schema version.- Parameters:
schemaVersion- The version to return the schema formapper- is to provide a Jackson ObjectMapper- Returns:
- a Schema
- Throws:
IOException- when errors are encountered- Since:
- 6.0.0
-
getJsonSchemaAsStream
-
getXmlSchema
Returns the CycloneDX XML Schema for the specified schema version.- Parameters:
schemaVersion- The version to return the schema for- Returns:
- a Schema
- Throws:
SAXException- a SAXException- Since:
- 2.0.0
-
getXmlSchema10
Returns the CycloneDX XML Schema from the specifications XSD.- Returns:
- a Schema
- Throws:
SAXException- a SAXException- Since:
- 1.1.0
-
getXmlSchema11
Returns the CycloneDX XML Schema from the specifications XSD.- Returns:
- a Schema
- Throws:
SAXException- a SAXException- Since:
- 2.0.0
-
getXmlSchema12
Returns the CycloneDX XML Schema from the specifications XSD.- Returns:
- a Schema
- Throws:
SAXException- a SAXException- Since:
- 2.8.0
-
getXmlSchema13
Returns the CycloneDX XML Schema from the specifications XSD.- Returns:
- a Schema
- Throws:
SAXException- a SAXException- Since:
- 5.0.0
-
getXmlSchema14
Returns the CycloneDX XML Schema from the specifications XSD.- Returns:
- a Schema
- Throws:
SAXException- a SAXException- Since:
- 5.1.0
-
getXmlSchema15
Returns the CycloneDX XML Schema from the specifications XSD.- Returns:
- a Schema
- Throws:
SAXException- a SAXException- Since:
- 8.0.1
-
getXmlSchema16
Returns the CycloneDX XML Schema from the specifications XSD.- Returns:
- a Schema
- Throws:
SAXException- a SAXException- Since:
- 8.1.0
-
getXmlSchema
- Throws:
SAXException
-