次の方法で共有


Comparison element

Specifies how AXE compares metric values. This element maps to the MetricThresholdValueComparison enumeration.

Usage

<Comparison>
  child elements
</Comparison>

Attributes

There are no attributes.

Child elements

Element Description
Absolute
Indicates that the MetricThreshold target is not used and the MetricValue is compared directly with the MetricThresholdValue. This is only valid for floating point and integral numeric types.

ContainsStringIsFail
Indicates that the MetricValue is considered to fail if the string contains the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings.

ContainsStringIsPass
Indicates that the MetricValue is considered to pass if the string contains the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings.

FalseIsPass
Indicates that the MetricValue is considered to pass if its boolean value is false. This is valid for boolean, numeric and string types. For integral numeric types, zero is considered false, and non-zero is true. For floating point types, zero and NaN are considered false, and all other values true. For string types, false is assumed if the string is null, empty (zero length) or consists of all white space characters.

IsStringIsFail
Indicates that the MetricValue is considered to fail if the MetricValue is a string or is not equivalent to the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings. This is only valid for string types.

IsStringIsPass
Indicates that the MetricValue is considered to pass if the MetricValue is a string and is equivalent to the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings. This is only valid for string types.

Offset
Indicates that the MetricThresholdValue is treated as an offset from the MetricThreshold target value. This is only valid for floating point and integral numeric types.

Percent
Indicates that the MetricThresholdValue is treated as a percent offset from the MetricThreshold. Target value. This is only valid for floating point and integral numeric types.

RegularExpressionMatchIsFail
Indicates that the MetricValue is considered to fail if the MetricValue is a string matched by the regular expression in the MetricThresholdValue. This is only valid for string types.

RegularExpressionMatchIsPass
Indicates that the MetricValue is considered to pass if the MetricValue is a string matched by the regular expression in the MetricThresholdValue. This is only valid for string types.

TrueIsPass
Indicates that the MetricValue is considered to pass if its boolean value is true. This is valid for boolean, numeric and string types. For integral numeric types, zero is considered false, and non-zero is true. For floating point types, zero and NaN are considered false, and all other values true. For string types, false is assumed if the string is null, empty (zero length) or consists of all white space characters.

Child element sequence

AbsoluteOffsetPercentTrueIsPassFalseIsPassContainsStringIsPassContainsStringIsFailIsStringIsPassIsStringIsFailRegularExpressionMatchIsPassRegularExpressionMatchIsFail

Parent elements

Element Description
MetricThresholdValue
This node contains the data defining a metric threshold value.

Element information

Can be empty No

See also

AXE Assessment Manifest