aboutsummaryrefslogtreecommitdiff
path: root/rdfloader/parser2v2/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'rdfloader/parser2v2/types.go')
-rw-r--r--rdfloader/parser2v2/types.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/rdfloader/parser2v2/types.go b/rdfloader/parser2v2/types.go
index 4d16344..dbb50d5 100644
--- a/rdfloader/parser2v2/types.go
+++ b/rdfloader/parser2v2/types.go
@@ -4,7 +4,8 @@ package parser2v2
import (
gordfParser "github.com/spdx/gordf/rdfloader/parser"
- "github.com/spdx/tools-golang/spdx"
+ "github.com/spdx/tools-golang/spdx/common"
+ "github.com/spdx/tools-golang/spdx/v2_2"
)
type rdfParser2_2 struct {
@@ -14,11 +15,11 @@ type rdfParser2_2 struct {
nodeStringToTriples map[string][]*gordfParser.Triple
// document into which data is being parsed
- doc *spdx.Document2_2
+ doc *v2_2.Document
// map of packages and files.
- files map[spdx.ElementID]*spdx.File2_2
- assocWithPackage map[spdx.ElementID]bool
+ files map[common.ElementID]*v2_2.File
+ assocWithPackage map[common.ElementID]bool
// mapping of nodeStrings to parsed object to save double computation.
cache map[string]*nodeState
@@ -27,16 +28,16 @@ type rdfParser2_2 struct {
type Color int
const (
- GREY Color = iota // represents that the node is being visited
- WHITE // unvisited node
- BLACK // visited node
+ GREY Color = iota // represents that the node is being visited
+ WHITE // unvisited node
+ BLACK // visited node
)
type nodeState struct {
// object will be pointer to the parsed or element being parsed.
object interface{}
// color of a state represents if the node is visited/unvisited/being-visited.
- Color Color
+ Color Color
}
type AnyLicenseInfo interface {