Action
    Preparing search index...

    Represents the type of a data value or metadata property in STDF.

    2.1

    Hierarchy (View Summary)

    Index

    Methods

    • Casts this object to the specified type. Throws error on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns T1

    • Determines whether the specified object is equal to the current object.

      Parameters

      • obj: any

        The object to compare with the current object.

      Returns boolean

      true if the specified object is equal to the current object; otherwise, false.

    • Serves as the default hash function.

      Returns number

      A hash code for the current object.

    • Returns a string that represents the current object.

      Returns string

      A string that represents the current object.

    • Casts this object to the specified type. Returns null on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns null | T1

    • Determines whether the specified object instances are considered equal.

      Parameters

      • objA: any

        The first object to compare.

      • objB: any

        The second object to compare.

      Returns boolean

      true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.

    Default capability

    The Binary value type.

    2.1

    The Boolean value type.

    2.1

    The Date value type.

    2.1

    DateTime: StdfValueType

    The DateTime value type.

    2.1

    Decimal: StdfValueType

    The Decimal value type.

    2.1

    The Double value type.

    2.1

    The Float value type.

    2.1

    The Integer value type.

    2.1

    The Long integer value type.

    2.1

    The String value type.

    2.1

    The Time value type.

    2.1

    TimeSpan: StdfValueType

    The TimeSpan value type.

    2.1

    • get DefaultValue(): unknown

      Gets the default value for this type.

      Returns unknown

      2.1

    • get IsArrayType(): boolean

      Gets a value indicating whether this is an array type.

      Returns boolean

      2.1

    • get IsSimpleType(): boolean

      Gets a value indicating whether this is a simple value type.

      Returns boolean

      2.1

    • get IsSupportedInStdfVersionOne(): boolean

      Gets a value indicating whether this value type was supported in STDF 1.0.

      Returns boolean

      2.1

    • get NullValue(): unknown

      Gets an object representing a null value.

      Returns unknown

      2.1

    • get RuntimeType(): Type

      Gets the runtime type corresponding to this StdfValueType instance.

      Returns Type

      2.1

    • get TypeName(): string

      Gets the name of this value type in the latest version of the format.

      Returns string

      2.1

    • get TypeNameInStdfVersionOne(): string

      Gets the name of this value type used in version 1.0 of the format.

      Returns string

      2.1

    • Returns an object representing an error value.

      Parameters

      • error: string | String

        The specific error string.

      Returns unknown

      An object representing an error value.

      2.1

    • Returns the STDF string encoding of a given value.

      Parameters

      • value: any

        The value to be formatted.

      Returns string

      A formatted string, not including the terminating semicolon.

      2.1

    • Gets the error string from the error value held in value.

      Parameters

      • value: any

        The error value.

      Returns string

      The error string.

      2.1

    • Determines if value is an error value.

      Parameters

      • value: any

        The object to examine.

      Returns boolean

      true if the object is an error value, false otherwise.

      2.1

    • Determines if value is an invalid value (null or error).

      Parameters

      • value: any

        The object to examine.

      Returns boolean

      true if the object is a null value or an error value; otherwise, false.

      2.1

    • Determines if value is an null/missing value.

      Parameters

      • value: any

        The object to examine.

      Returns boolean

      true if the object is a null value; otherwise, false.

      2.1

    • Tries to create a value of this type from a text string.

      Parameters

      Returns boolean

      True if the value was successfully parsed; otherwise, false.

      2.1

    • Gets a StdfValueType from a string representation.

      Parameters

      • typeName: string | String

        The name of the value type.

      Returns StdfValueType

      An StdfValueType instance.

      2.1

    • Gets a value indicating whether a given type identifier corresponds to an array type.

      Parameters

      Returns boolean

      True for an array type; otherwise, false.

      2.1

    • Gets a value indicating whether a given type identifier corresponds to a simple type.

      Parameters

      Returns boolean

      True for a simple type; otherwise, false.

      2.1