Package org.cyclonedx

Class CycloneDxSchema

    • Constructor Summary

      Constructors 
      Constructor Description
      CycloneDxSchema()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.networknt.schema.JsonSchema getJsonSchema​(Version schemaVersion, com.fasterxml.jackson.databind.ObjectMapper mapper)
      Returns the CycloneDX JsonSchema for the specified schema version.
      private java.io.InputStream getJsonSchemaAsStream​(Version schemaVersion)  
      javax.xml.validation.Schema getXmlSchema​(java.io.InputStream... inputStreams)  
      javax.xml.validation.Schema getXmlSchema​(Version schemaVersion)
      Returns the CycloneDX XML Schema for the specified schema version.
      private javax.xml.validation.Schema getXmlSchema10()
      Returns the CycloneDX XML Schema from the specifications XSD.
      private javax.xml.validation.Schema getXmlSchema11()
      Returns the CycloneDX XML Schema from the specifications XSD.
      private javax.xml.validation.Schema getXmlSchema12()
      Returns the CycloneDX XML Schema from the specifications XSD.
      private javax.xml.validation.Schema getXmlSchema13()
      Returns the CycloneDX XML Schema from the specifications XSD.
      private javax.xml.validation.Schema getXmlSchema14()
      Returns the CycloneDX XML Schema from the specifications XSD.
      private javax.xml.validation.Schema getXmlSchema15()
      Returns the CycloneDX XML Schema from the specifications XSD.
      private javax.xml.validation.Schema getXmlSchema16()
      Returns the CycloneDX XML Schema from the specifications XSD.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CycloneDxSchema

        public CycloneDxSchema()
    • Method Detail

      • getJsonSchema

        public com.networknt.schema.JsonSchema getJsonSchema​(Version schemaVersion,
                                                             com.fasterxml.jackson.databind.ObjectMapper mapper)
                                                      throws java.io.IOException
        Returns the CycloneDX JsonSchema for the specified schema version.
        Parameters:
        schemaVersion - The version to return the schema for
        mapper - is to provide a Jackson ObjectMapper
        Returns:
        a Schema
        Throws:
        java.io.IOException - when errors are encountered
        Since:
        6.0.0
      • getJsonSchemaAsStream

        private java.io.InputStream getJsonSchemaAsStream​(Version schemaVersion)
      • getXmlSchema

        public javax.xml.validation.Schema getXmlSchema​(Version schemaVersion)
                                                 throws org.xml.sax.SAXException
        Returns the CycloneDX XML Schema for the specified schema version.
        Parameters:
        schemaVersion - The version to return the schema for
        Returns:
        a Schema
        Throws:
        org.xml.sax.SAXException - a SAXException
        Since:
        2.0.0
      • getXmlSchema10

        private javax.xml.validation.Schema getXmlSchema10()
                                                    throws org.xml.sax.SAXException
        Returns the CycloneDX XML Schema from the specifications XSD.
        Returns:
        a Schema
        Throws:
        org.xml.sax.SAXException - a SAXException
        Since:
        1.1.0
      • getXmlSchema11

        private javax.xml.validation.Schema getXmlSchema11()
                                                    throws org.xml.sax.SAXException
        Returns the CycloneDX XML Schema from the specifications XSD.
        Returns:
        a Schema
        Throws:
        org.xml.sax.SAXException - a SAXException
        Since:
        2.0.0
      • getXmlSchema12

        private javax.xml.validation.Schema getXmlSchema12()
                                                    throws org.xml.sax.SAXException
        Returns the CycloneDX XML Schema from the specifications XSD.
        Returns:
        a Schema
        Throws:
        org.xml.sax.SAXException - a SAXException
        Since:
        2.8.0
      • getXmlSchema13

        private javax.xml.validation.Schema getXmlSchema13()
                                                    throws org.xml.sax.SAXException
        Returns the CycloneDX XML Schema from the specifications XSD.
        Returns:
        a Schema
        Throws:
        org.xml.sax.SAXException - a SAXException
        Since:
        5.0.0
      • getXmlSchema14

        private javax.xml.validation.Schema getXmlSchema14()
                                                    throws org.xml.sax.SAXException
        Returns the CycloneDX XML Schema from the specifications XSD.
        Returns:
        a Schema
        Throws:
        org.xml.sax.SAXException - a SAXException
        Since:
        5.1.0
      • getXmlSchema15

        private javax.xml.validation.Schema getXmlSchema15()
                                                    throws org.xml.sax.SAXException
        Returns the CycloneDX XML Schema from the specifications XSD.
        Returns:
        a Schema
        Throws:
        org.xml.sax.SAXException - a SAXException
        Since:
        8.0.1
      • getXmlSchema16

        private javax.xml.validation.Schema getXmlSchema16()
                                                    throws org.xml.sax.SAXException
        Returns the CycloneDX XML Schema from the specifications XSD.
        Returns:
        a Schema
        Throws:
        org.xml.sax.SAXException - a SAXException
        Since:
        8.1.0
      • getXmlSchema

        public javax.xml.validation.Schema getXmlSchema​(java.io.InputStream... inputStreams)
                                                 throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException