MCPcopy Create free account
hub / github.com/STIXProject/python-stix / GenericRelationship

Class GenericRelationship

stix/common/related.py:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43class GenericRelationship(stix.Entity):
44 _namespace = "http://docs.oasis-open.org/cti/ns/stix/common-1"
45 _binding = common_binding
46 _binding_class = common_binding.GenericRelationshipType
47
48 confidence = fields.TypedField("Confidence", Confidence)
49 information_source = fields.TypedField("Information_Source", InformationSource)
50 relationship = VocabField("Relationship")
51
52 def __init__(self, confidence=None, information_source=None, relationship=None):
53 super(GenericRelationship, self).__init__()
54
55 self.confidence = confidence
56 self.information_source = information_source
57 self.relationship = relationship
58
59
60class RelatedPackageRef(GenericRelationship):

Callers

nothing calls this directly

Calls 1

VocabFieldClass · 0.85

Tested by

no test coverage detected