MCPcopy Index your code
hub / github.com/aboutcode-org/vulnerablecode / getId

Method getId

vulnerabilities/lib_oval.py:729–738  ·  view source on GitHub ↗

Returns the OVAL ID for this element, or None if 1. This object was instantiated without an Element 2. The underlying element does not have an "id" attribute

(self)

Source from the content-addressed store, hash-verified

727 self.element = element
728
729 def getId(self):
730 """
731 Returns the OVAL ID for this element, or None if
732 1. This object was instantiated without an Element
733 2. The underlying element does not have an "id" attribute
734 """
735 if self.element is None:
736 return None
737
738 return self.element.get("id")
739
740 def setId(self, ovalid):
741 """

Callers 9

getIndexSequenceMethod · 0.95
getFileNameMethod · 0.95
__init__Method · 0.80
addElementMethod · 0.80
test_get_definitionsMethod · 0.80
test_ovaltest_sortingFunction · 0.80

Calls 1

getMethod · 0.45