CPEComponentUndefined class

class cpe.comp.cpecomp_undefined.CPEComponentUndefined[source]

Represents an undefined component of CPE name, compatible with the components of all versions of CPE specification.

For example, in version 1.1 of CPE specification, an undefined component is edition attribute in CPE name cpe:/microsft:windows:xp.

__contains__(item)[source]

Returns True if item is included in set of values of self.

Parameters:

item (CPEComponent) – component to find in self

Returns:

True if item is included in set of self

Return type:

boolean

__eq__(other)[source]

Returns True if other (first element of operation) and self (second element of operation) are equal components, false otherwise.

Parameters:

other (CPEComponent) – component to compare

Returns:

True if other == self, False otherwise

__hash__ = None
__init__()[source]

Initializes the component.

__str__()[source]

Returns a human-readable representation of CPE component.

Returns:

Representation of CPE component as string

Return type:

string