CPEComponent2_2 class

class cpe.comp.cpecomp2_2.CPEComponent2_2(comp_str, comp_att)[source]

Represents a component of version 2.2 of CPE specification.

TEST: simple value

>>> value = "microsoft"
>>> comp = CPEComponent2_2(value, CPEComponentSimple.ATT_VENDOR)
NON_STANDARD_VALUES = ['.', '-', '~', '%']

Characters of version 2.2 of CPE name to convert to standard value (WFN value)

SEPARATOR_COMP = ':'

Separator of components of CPE name with URI style

VALUE_EMPTY = ''

Logical value associated with a component without value set

VALUE_UNDEFINED = None

Logical value associated with a undefined component of CPE Name

__repr__()[source]

Returns a unambiguous representation of CPE component.

Returns:Representation of CPE component as string
Return type:string