public class BomJsonGenerator12 extends AbstractBomJsonGenerator implements BomJsonGenerator
Component
s.CycloneDxSchema.Version
NS_BOM_10, NS_BOM_11, NS_BOM_12, NS_BOM_13, NS_BOM_LATEST, NS_DEPENDENCY_GRAPH_10, VERSION_LATEST
Constructor and Description |
---|
BomJsonGenerator12(Bom bom)
Constructs a new BomGenerator object.
|
Modifier and Type | Method and Description |
---|---|
CycloneDxSchema.Version |
getSchemaVersion()
Returns the version of the CycloneDX schema used by this instance
|
javax.json.JsonObject |
toJsonObject()
Creates a CycloneDX BOM from a set of Components.
|
String |
toJsonString() |
String |
toString() |
getMapper
getJsonSchema, getXmlSchema, getXmlSchema
public BomJsonGenerator12(Bom bom)
bom
- the BOM to generatepublic CycloneDxSchema.Version getSchemaVersion()
getSchemaVersion
in interface BomJsonGenerator
public javax.json.JsonObject toJsonObject()
toJsonObject
in interface BomJsonGenerator
public String toJsonString()
toJsonString
in interface BomJsonGenerator
public String toString()
toString
in interface BomJsonGenerator
toString
in class Object
Copyright © 2017–2021 CycloneDX. All rights reserved.