IFClite TypeScript API
    Preparing search index...

    Interface IDSPatternConstraint

    Pattern constraint - regex match

    interface IDSPatternConstraint {
        and?: readonly IDSConstraint[];
        base?: string;
        pattern: string;
        type: "pattern";
    }
    Index
    and?: readonly IDSConstraint[]

    Facets of the SAME <xs:restriction> beyond this one. XSD facets in a single restriction are conjunctive — a value must satisfy every one — but one IDSConstraint expresses only one family, so parseRestriction keeps the first here and hangs the rest off this list for matchConstraint to require as well. Unset for the overwhelmingly common single-family restriction. Matching (matchConstraint) and the two description paths (formatConstraint, TranslationService.describeConstraint) account for it, and so do the IDS-document auditors under audit/ (coherence and predefined-type checks visit every sibling, IDS-010).

    base?: string

    The originating xs:restriction @base (e.g. xs:string, xs:integer). Set when the constraint came from an <xs:restriction> element; the auditor uses it to determine compatibility with an IFC dataType without inferring the base from the constraint shape.

    pattern: string

    XSD regex pattern

    type: "pattern"