CPELanguage2_2 class¶
-
class
cpe.cpelang2_2.
CPELanguage2_2
(expression, isFile=False)¶ Represents an expression in the CPE Language.
This class allows match a CPE element against an expression in the CPE Language, that is, a XML document format for binding descriptive prose and diagnostic test to a CPE name (CPE Description Format).
-
language_match
(cpeset, cpel_dom=None)¶ Accepts a set of known CPE Names and an expression in the CPE language, and delivers the answer True if the expression matches with the set. Otherwise, it returns False.
Parameters: - self (CPELanguage) – An expression in the CPE Applicability Language, represented as the XML infoset for the platform element.
- cpeset (CPESet) – CPE set object to match with self expression.
- cpel_dom (string) – An expression in the CPE Applicability Language, represented as DOM tree.
Returns: True if self expression can be satisfied by language matching against cpeset, False otherwise.
Return type: boolean
-