File tree 2 files changed +0
-87
lines changed
2 files changed +0
-87
lines changed Original file line number Diff line number Diff line change 26
26
from sortedcontainers import SortedSet
27
27
28
28
from ..exception .model import LicenseExpressionAlongWithOthersException , UnknownComponentDependencyException
29
- from ..parser import BaseParser
30
29
from ..schema .schema import (
31
30
SchemaVersion1Dot0 ,
32
31
SchemaVersion1Dot1 ,
@@ -260,28 +259,10 @@ class Bom:
260
259
"""
261
260
This is our internal representation of a bill-of-materials (BOM).
262
261
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
-
266
262
Once you have an instance of `cyclonedx.model.bom.Bom`, you can pass this to an instance of
267
263
`cyclonedx.output.BaseOutput` to produce a CycloneDX document according to a specific schema version and format.
268
264
"""
269
265
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
-
285
266
def __init__ (self , * , components : Optional [Iterable [Component ]] = None ,
286
267
services : Optional [Iterable [Service ]] = None ,
287
268
external_references : Optional [Iterable [ExternalReference ]] = None ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments