code: public boolean isValid(File file, CycloneDxSchema.Version schemaVersion) {
          return validate(file, schemaVersion).isEmpty();
      }
docs: Verifies a CycloneDX BoM conforms to the specification through XML validation.
  @param file the CycloneDX BoM file to validate
  @param schemaVersion the schema version to validate against
  @return true is the file is a valid BoM, false if not
  @since 2.0.0