$deviceData
$deviceData :
Uses the TokenTrieWalker to try and find a set of Components for given input identifier(s).
The properties from the found components are merged and added to the main Properties collection for return to the user.
__construct( $deviceData, $tokenTrieWalker, $dynamicPropertiesExtractor, $propertyMappingsRunner)
$deviceData | ||
$tokenTrieWalker | ||
$dynamicPropertiesExtractor | ||
$propertyMappingsRunner |
getComponents( $identifierOrHeaders, $dynamicProperties)
Get the properties detected from the passed identifier.
$identifierOrHeaders | ||
$dynamicProperties |
hasValidLookaroundConstraints( $referenceTokenPosition, $lookaroundConstraints, $allCandidates) :
Check the lookaround constraint for the match candidate to ensure that _other_ components are present within the allowed offset ranges.
$referenceTokenPosition | ||
$lookaroundConstraints | ||
$allCandidates |
getComponentsByHeaders( $headers, $dynamicProperties)
Get properties from the passed collection of identifiers
$headers | ||
$dynamicProperties |
refineComponentsByLevel( $result, $dynamicProperties)
Refines the match candidates by running the property constraints and additional actions.
Java impl.: getComponentsByLevel(final ComponentDetectorResult result, final Map<String, Property> dynamicProperties)
$result | ||
$dynamicProperties |
getComponentsByLevel( $matchResult)
Given a collection of found components within an IdentifierMatchResult select the components that should be returned and used for properties.
One component per component level is returned. The component at each level must • Pass the the lookaround constraint if it exists • Be of greater weight than any other component of the same level or be of the same weight but found deeper in the identifier.
$matchResult |