Package src :: Package com :: Package deviceatlas :: Package device :: Module dependent_input :: Class DependentInput
[frames] | no frames]

Class DependentInput

input.Input --+
              |
             DependentInput

Represents a single entry in the data file "o" (ordered inputs) node.

@author DeviceAtlas Limited

Instance Methods
 
__init__(self, input, associated_inputs)
 
key(self)
 
source(self)
 
is_ensure_client_hint_quote(self)
 
is_header_source(self)
 
is_client_side_source(self)
 
can_be_used(self, headers)
Can only use the input if:
 
associated_inputs(self)
 
has_associated_inputs(self)
 
add_associated_identifier_name(self, key)
 
associated_identifier_names(self)

Inherited from input.Input: get_identifier_value

Static Methods

Inherited from input.Input: is_empty_value

Method Details

key(self)

 
Decorators:
  • @property
Overrides: key

source(self)

 
Decorators:
  • @property
Overrides: source

is_ensure_client_hint_quote(self)

 
Decorators:
  • @property
Overrides: is_ensure_client_hint_quote

is_header_source(self)

 
Decorators:
  • @property
Overrides: is_header_source

is_client_side_source(self)

 
Decorators:
  • @property
Overrides: is_client_side_source

can_be_used(self, headers)

 

Can only use the input if:

There are no associated inputs then the input can be used if it is present in the detected headers.

OR

There are associated inputs then the input can be used if it is present in the detected headers AND all the associated input are also present. :param headers: :return:

Overrides: input.Input.can_be_used

associated_inputs(self)

 
Decorators:
  • @property
Overrides: associated_inputs

has_associated_inputs(self)

 
Decorators:
  • @property
Overrides: has_associated_inputs

add_associated_identifier_name(self, key)

 
Overrides: input.Input.add_associated_identifier_name

associated_identifier_names(self)

 
Decorators:
  • @property
Overrides: associated_identifier_names