GUPnPAV.SearchCriteriaParser¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The ::begin_parens signal is emitted to mark the beginning of a parenthetical expression. |
|
The |
|
The |
|
The ::end_parens signal is emitted to mark the end of a parenthetical expression. |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUPnPAV.SearchCriteriaParser(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
A new
GUPnPAV.SearchCriteriaParser
object.- Return type:
- parse_text(text)¶
- Parameters:
text (
str
) – The search criteria string to be parsed- Raises:
- Returns:
True
on success.- Return type:
Parses text, emitting the various defined signals on the way. If an error occured error will be set.
- do_begin_parens() virtual¶
- do_conjunction() virtual¶
- do_disjunction() virtual¶
- do_end_parens() virtual¶
- do_expression(property, op, value) virtual¶
- Parameters:
property (
str
) –op (
GUPnPAV.SearchCriteriaOp
) –value (
str
) –
- Return type:
Signal Details¶
- GUPnPAV.SearchCriteriaParser.signals.begin_parens(search_criteria_parser)¶
- Signal Name:
begin-parens
- Flags:
- Parameters:
search_criteria_parser (
GUPnPAV.SearchCriteriaParser
) – The object which received the signal
The ::begin_parens signal is emitted to mark the beginning of a parenthetical expression.
- GUPnPAV.SearchCriteriaParser.signals.conjunction(search_criteria_parser)¶
- Signal Name:
conjunction
- Flags:
- Parameters:
search_criteria_parser (
GUPnPAV.SearchCriteriaParser
) – The object which received the signal
The
::conjuction
signal is emitted whenever a conjuction marker (and) is parsed.
- GUPnPAV.SearchCriteriaParser.signals.disjunction(search_criteria_parser)¶
- Signal Name:
disjunction
- Flags:
- Parameters:
search_criteria_parser (
GUPnPAV.SearchCriteriaParser
) – The object which received the signal
The
::disjuction
signal is emitted whenever a disjuction marker (or&rpar is parsed.
- GUPnPAV.SearchCriteriaParser.signals.end_parens(search_criteria_parser)¶
- Signal Name:
end-parens
- Flags:
- Parameters:
search_criteria_parser (
GUPnPAV.SearchCriteriaParser
) – The object which received the signal
The ::end_parens signal is emitted to mark the end of a parenthetical expression.
- GUPnPAV.SearchCriteriaParser.signals.expression(search_criteria_parser, property, op, value, error)¶
- Signal Name:
expression
- Flags:
- Parameters:
search_criteria_parser (
GUPnPAV.SearchCriteriaParser
) – The object which received the signalproperty (
str
) – The propertyop (
GUPnPAV.SearchCriteriaOp
) – The operator asGUPnPAV.SearchCriteriaOp
value (
str
) – The value as stringerror (
object
orNone
) – Place-holder for any possible errors from handler
- Return type:
The
::expression
signal is emitted whenever an expression is parsed. Set error and returnFalse
if an error occurred.