projects/m2-core/src/lib/model/formula/compatibility/CompatibilityPredicate.ts
constructor(predicateType: CompatibilityPredicateType)
|
||||||
|
Parameters :
|
| Public Optional $$index |
Type : number
|
| Public Optional groupBorderName |
Type : string
|
| Public Optional groupId |
Type : number
|
| Public Optional hideLogicalOperator |
Type : boolean
|
| Public level |
Type : number
|
Default value : 0
|
| Public mappings |
Type : literal type[]
|
Default value : []
|
| Public nullEqualsAny |
Default value : NullEqualsAnyType.NotEquals
|
| Public nullsEquals |
Default value : false
|
| Public predicateType |
Type : CompatibilityPredicateType
|
| Public Optional isConjunction |
Type : boolean
|
| Public Optional leftDeflection |
Type : number
|
| Public Optional leftDeflectionPrecision |
Type : number
|
| Public Optional leftInitialValue |
Type : any
|
| Public Optional leftPropertyDeclaration |
Type : PropertyDeclaration
|
| Public Optional leftPropertyDisplayName |
Type : string
|
| Public Optional leftPropertyPath |
Type : number[]
|
| Public Optional leftPropertyPathStr |
Type : string
|
| Public Optional leftValue |
Type : string
|
| Public Optional leftValueName |
Type : string
|
| Public Optional leftValuePrecision |
Type : number
|
| Public logicalOperator |
Default value : LogicalOperatorType.OR
|
| Public operator |
Default value : OperatorType.EQUAL
|
| Public Optional rightDeflection |
Type : number
|
| Public Optional rightDeflectionPrecision |
Type : number
|
| Public Optional rightInitialValue |
Type : any
|
| Public Optional rightPropertyDeclaration |
Type : PropertyDeclaration
|
| Public Optional rightPropertyDisplayName |
Type : string
|
| Public Optional rightPropertyPath |
Type : number[]
|
| Public Optional rightPropertyPathStr |
Type : string
|
| Public Optional rightValue |
Type : string
|
| Public Optional rightValueName |
Type : string
|
| Public Optional rightValuePrecision |
Type : number
|
| Public Optional unit |
Type : MeasurementUnit
|
| Public Optional unitId |
Type : number
|
| Public addMappingPlaceholderIfNeeded |
addMappingPlaceholderIfNeeded()
|
|
Returns :
void
|
| Static buildGroupBorders | ||||||
buildGroupBorders(groupId: number)
|
||||||
|
Parameters :
Returns :
CompatibilityPredicate[]
|
| Static calcNextGroupId | ||||||
calcNextGroupId(predicates: CompatibilityPredicate[])
|
||||||
|
Parameters :
Returns :
number
|
| Public clearLeftProperty |
clearLeftProperty()
|
|
Predicate properties
Returns :
void
|
| Public clearLeftValue |
clearLeftValue()
|
|
Returns :
void
|
| Public clearRightProperty |
clearRightProperty()
|
|
Returns :
void
|
| Public clearRightValue |
clearRightValue()
|
|
Returns :
void
|
| Public deleteEmptyMappings | ||||||
deleteEmptyMappings(preserveLast?: boolean)
|
||||||
|
Parameters :
Returns :
void
|
| Public deleteMapping | ||||||
deleteMapping(mapping: literal type)
|
||||||
|
Parameters :
Returns :
void
|
| format |
format()
|
|
Returns :
void
|
| Public getClientFields |
getClientFields()
|
|
Returns :
string[]
|
| Public isMappingPlaceholder | ||||||
isMappingPlaceholder(mapping: literal type)
|
||||||
|
Parameters :
Returns :
boolean
|
| Static isPropertyValid | ||||||
isPropertyValid(propertyNode: PropertyNode)
|
||||||
|
Properties
Parameters :
Returns :
boolean
|
| Public sanitize |
sanitize()
|
|
Prepares predicate before sending to the backend
Returns :
CompatibilityPredicate
|
| Public setLeftValue |
setLeftValue(value: string, precision?: number, valueFull?: any)
|
|
Predicate values
Returns :
void
|
| Public setRightValue |
setRightValue(value: string, precision?: number, valueFull?: any)
|
|
Returns :
void
|
| Public validateParamsValues |
validateParamsValues()
|
|
Predicate params validation
Returns :
void
|
| Public clearBothDeflections |
clearBothDeflections()
|
|
Returns :
void
|
| Public clearBothValues |
clearBothValues()
|
|
Returns :
void
|
| Public clearLeftDeflection |
clearLeftDeflection()
|
|
Deflections
Returns :
void
|
| Public clearRightDeflection |
clearRightDeflection()
|
|
Returns :
void
|
| Public clearUnit |
clearUnit()
|
|
Unit
Returns :
void
|
| Public copyLeftPropertyToRight |
copyLeftPropertyToRight()
|
|
Returns :
void
|
| Public copyRightPropertyToLeft |
copyRightPropertyToLeft()
|
|
Returns :
void
|
| Public increasePrecision | ||||||
increasePrecision(precisionDelta: number)
|
||||||
|
Double precision
Parameters :
Returns :
void
|
| Public setLeftProperty | ||||||
setLeftProperty(path: PropertyNode[])
|
||||||
|
Predicate properties
Parameters :
Returns :
void
|
| Public setRightProperty | ||||||
setRightProperty(path: PropertyNode[])
|
||||||
|
Parameters :
Returns :
void
|
| isSimple |
getisSimple()
|
|
Вычисляемые совместимости должны иметь хотя бы один простой критерий сравнения: =, >, <, >=, <=, пересекаются, без маппинга значений и со стандартными режимами сравнения. Критерий с обеих сторон должен ссылаться ровно на одно свойство, не на путь через агрегацию, и не на константу
Returns :
boolean
|
| hasMultipleSide |
gethasMultipleSide()
|
|
Multiplicity
Returns :
boolean
|
| areBothMultiple |
getareBothMultiple()
|
| isLeftMultiple |
getisLeftMultiple()
|
| isRightMultiple |
getisRightMultiple()
|
| hasMultiplicityMismatch |
gethasMultiplicityMismatch()
|
| areComparisonParamsAllowed |
getareComparisonParamsAllowed()
|
|
Predicate params
Returns :
boolean
|
| isLeftDeflectionParamAllowed |
getisLeftDeflectionParamAllowed()
|
| isRightDeflectionParamAllowed |
getisRightDeflectionParamAllowed()
|
| isUnitParamAllowed |
getisUnitParamAllowed()
|
| isMappingParamAllowed |
getisMappingParamAllowed()
|
| displayLeftPropertyUnit |
getdisplayLeftPropertyUnit()
|
|
Units visibility
Returns :
boolean
|
| displayRightPropertyUnit |
getdisplayRightPropertyUnit()
|
| displayUnitParam |
getdisplayUnitParam()
|
| isLeftMappingConst |
getisLeftMappingConst()
|
|
Mappings
Returns :
boolean
|
| isRightMappingConst |
getisRightMappingConst()
|
| leftMappingPlaceholder |
getleftMappingPlaceholder()
|
| rightMappingPlaceholder |
getrightMappingPlaceholder()
|
| isGroupBorder |
getisGroupBorder()
|
|
Group borders
Returns :
boolean
|