DynamicValueExtractorFactory
in package
Table of Contents
Properties
- $DYNAMIC_VALUE_DELIMITERS_AFTER : mixed
- $DYNAMIC_VALUE_DELIMITERS_BEFORE : mixed
- $DYNAMIC_VALUE_EXTRACTOR_TYPE_STRING : mixed
- $DYNAMIC_VALUE_EXTRACTOR_TYPE_VERSION : mixed
- $DYNAMIC_VALUE_VERSION_DECIMAL_SEP : mixed
- $DYNAMIC_VALUE_VERSION_KEEP_PREFIX : mixed
- $DYNAMIC_VALUE_VERSION_PREFIX : mixed
- $DYNAMIC_VALUE_VERSION_SUFFIX_ALLOWED : mixed
- $DYNAMIC_VALUE_VERSION_SUFFIX_SEP : mixed
Methods
- getDynamicValueExtractor() : mixed
- createStringExtractor() : DynamicStringExtractor
- Create the "String" type extractor
- createVersionExtractor() : DynamicVersionExtractor
- Create the "Version" type extractor
Properties
$DYNAMIC_VALUE_DELIMITERS_AFTER
private
static mixed
$DYNAMIC_VALUE_DELIMITERS_AFTER
= "da"
$DYNAMIC_VALUE_DELIMITERS_BEFORE
private
static mixed
$DYNAMIC_VALUE_DELIMITERS_BEFORE
= "db"
$DYNAMIC_VALUE_EXTRACTOR_TYPE_STRING
private
static mixed
$DYNAMIC_VALUE_EXTRACTOR_TYPE_STRING
= "s"
$DYNAMIC_VALUE_EXTRACTOR_TYPE_VERSION
private
static mixed
$DYNAMIC_VALUE_EXTRACTOR_TYPE_VERSION
= "v"
$DYNAMIC_VALUE_VERSION_DECIMAL_SEP
private
static mixed
$DYNAMIC_VALUE_VERSION_DECIMAL_SEP
= "ds"
$DYNAMIC_VALUE_VERSION_KEEP_PREFIX
private
static mixed
$DYNAMIC_VALUE_VERSION_KEEP_PREFIX
= "k"
$DYNAMIC_VALUE_VERSION_PREFIX
private
static mixed
$DYNAMIC_VALUE_VERSION_PREFIX
= "p"
$DYNAMIC_VALUE_VERSION_SUFFIX_ALLOWED
private
static mixed
$DYNAMIC_VALUE_VERSION_SUFFIX_ALLOWED
= "a"
$DYNAMIC_VALUE_VERSION_SUFFIX_SEP
private
static mixed
$DYNAMIC_VALUE_VERSION_SUFFIX_SEP
= "ss"
Methods
getDynamicValueExtractor()
public
static getDynamicValueExtractor(mixed $extractorType, mixed $rawExtractor, mixed $defaultDelimitersHandler) : mixed
Parameters
- $extractorType : mixed
- $rawExtractor : mixed
- $defaultDelimitersHandler : mixed
createStringExtractor()
Create the "String" type extractor
private
static createStringExtractor(array<string|int, mixed> $rawExtractor, DelimitersHandler $defaultDelimitersHandler) : DynamicStringExtractor
"t": "s", t==Extractor Type, s==String Type [mandatory] "db": [integer array] , db==Delimiter before (codepoints) [optional] "da": [integer array] da==Delimiters after (codepoints) [optional] }
Parameters
- $rawExtractor : array<string|int, mixed>
- $defaultDelimitersHandler : DelimitersHandler
Return values
DynamicStringExtractorcreateVersionExtractor()
Create the "Version" type extractor
private
static createVersionExtractor(array<string|int, mixed> $rawExtractor, DelimitersHandler $defaultDelimitersHandler) : DynamicVersionExtractor
{ "t":"v", t==Extractor Type, v==Version Type [mandatory] "db": [integer array], db==Delimiter before (codepoints) [optional] "p": "string", p==Version Prefix [optional] "k": true|false, k==Keep Prefix [optional] "ds":"char", ds==Decimal Separator [mandatory] "a": true|false, a==Suffix Allowed [mandatory] "ss":"char", ss==Suffix Separator [optional] "da":[integer array] da==Delimiters after (codepoints) [optional] }
Parameters
- $rawExtractor : array<string|int, mixed>
- $defaultDelimitersHandler : DelimitersHandler