IFClite TypeScript API
    Preparing search index...

    Interface IDSEnumerationConstraint

    Enumeration constraint - one of a list of values

    interface IDSEnumerationConstraint {
        and?: readonly IDSConstraint[];
        base?: string;
        toleranceRule?: "ids11-418";
        type: "enumeration";
        values: string[];
    }
    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>; numeric/boolean enumerations carry their base here so the auditor doesn't false-positive a string-base mismatch.

    toleranceRule?: "ids11-418"

    IDS 1.1 PREVIEW (#418): numeric tolerance rule; unset means IDS 1.0.

    type: "enumeration"
    values: string[]

    List of allowed values