spdx_tools.spdx.jsonschema.document_properties

 1# SPDX-FileCopyrightText: 2022 spdx contributors
 2#
 3# SPDX-License-Identifier: Apache-2.0
 4from enum import auto
 5
 6from spdx_tools.spdx.jsonschema.json_property import JsonProperty
 7
 8
 9class DocumentProperty(JsonProperty):
10    SPDX_ID = auto()
11    ANNOTATIONS = auto()
12    COMMENT = auto()
13    CREATION_INFO = auto()
14    DATA_LICENSE = auto()
15    EXTERNAL_DOCUMENT_REFS = auto()
16    HAS_EXTRACTED_LICENSING_INFOS = auto()
17    NAME = auto()
18    SPDX_VERSION = auto()
19    DOCUMENT_NAMESPACE = auto()
20    PACKAGES = auto()
21    FILES = auto()
22    SNIPPETS = auto()
23    RELATIONSHIPS = auto()
class DocumentProperty(spdx_tools.spdx.jsonschema.json_property.JsonProperty):
10class DocumentProperty(JsonProperty):
11    SPDX_ID = auto()
12    ANNOTATIONS = auto()
13    COMMENT = auto()
14    CREATION_INFO = auto()
15    DATA_LICENSE = auto()
16    EXTERNAL_DOCUMENT_REFS = auto()
17    HAS_EXTRACTED_LICENSING_INFOS = auto()
18    NAME = auto()
19    SPDX_VERSION = auto()
20    DOCUMENT_NAMESPACE = auto()
21    PACKAGES = auto()
22    FILES = auto()
23    SNIPPETS = auto()
24    RELATIONSHIPS = auto()

Parent class for all json property classes. Not meant to be instantiated directly, only to have a common parent type that can be used in type hints. In general, all the child enums list the properties of the corresponding objects from the json schema.

SPDX_ID = <DocumentProperty.SPDX_ID: 1>
ANNOTATIONS = <DocumentProperty.ANNOTATIONS: 2>
COMMENT = <DocumentProperty.COMMENT: 3>
CREATION_INFO = <DocumentProperty.CREATION_INFO: 4>
DATA_LICENSE = <DocumentProperty.DATA_LICENSE: 5>
EXTERNAL_DOCUMENT_REFS = <DocumentProperty.EXTERNAL_DOCUMENT_REFS: 6>
HAS_EXTRACTED_LICENSING_INFOS = <DocumentProperty.HAS_EXTRACTED_LICENSING_INFOS: 7>
NAME = <DocumentProperty.NAME: 8>
SPDX_VERSION = <DocumentProperty.SPDX_VERSION: 9>
DOCUMENT_NAMESPACE = <DocumentProperty.DOCUMENT_NAMESPACE: 10>
PACKAGES = <DocumentProperty.PACKAGES: 11>
FILES = <DocumentProperty.FILES: 12>
SNIPPETS = <DocumentProperty.SNIPPETS: 13>
RELATIONSHIPS = <DocumentProperty.RELATIONSHIPS: 14>
Inherited Members
enum.Enum
name
value