File tree Expand file tree Collapse file tree 2 files changed +0
-87
lines changed
Expand file tree Collapse file tree 2 files changed +0
-87
lines changed Original file line number Diff line number Diff line change 2626from sortedcontainers import SortedSet
2727
2828from ..exception .model import LicenseExpressionAlongWithOthersException , UnknownComponentDependencyException
29- from ..parser import BaseParser
3029from ..schema .schema import (
3130 SchemaVersion1Dot0 ,
3231 SchemaVersion1Dot1 ,
@@ -260,28 +259,10 @@ class Bom:
260259 """
261260 This is our internal representation of a bill-of-materials (BOM).
262261
263- You can either create a `cyclonedx.model.bom.Bom` yourself programmatically, or generate a `cyclonedx.model.bom.Bom`
264- from a `cyclonedx.parser.BaseParser` implementation.
265-
266262 Once you have an instance of `cyclonedx.model.bom.Bom`, you can pass this to an instance of
267263 `cyclonedx.output.BaseOutput` to produce a CycloneDX document according to a specific schema version and format.
268264 """
269265
270- @staticmethod
271- def from_parser (parser : BaseParser ) -> 'Bom' :
272- """
273- Create a Bom instance from a Parser object.
274-
275- Args:
276- parser (`cyclonedx.parser.BaseParser`): A valid parser instance.
277-
278- Returns:
279- `cyclonedx.model.bom.Bom`: A Bom instance that represents the valid data held in the supplied parser.
280- """
281- bom = Bom ()
282- bom .components .update (parser .get_components ())
283- return bom
284-
285266 def __init__ (self , * , components : Optional [Iterable [Component ]] = None ,
286267 services : Optional [Iterable [Service ]] = None ,
287268 external_references : Optional [Iterable [ExternalReference ]] = None ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments