@willwade/aac-processors
    Preparing search index...

    Class ApplePanelsValidator

    Validator for Apple Panels (.plist or .ascconfig directory)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _blocked: boolean = false
    _checks: ValidationCheck[] = []
    _errors: number = 0
    _options: ValidationConfig
    _sub_checks: ValidationResult[] = []
    _warnings: number = 0

    Accessors

    Methods

    • Add a validation check that will be executed

      Parameters

      • type: string

        Category of the check

      • description: string

        Human-readable description

      • checkFn: () => Promise<void>

        Async function that performs the check

      Returns Promise<void>

    • Throw a validation error

      Parameters

      • message: string

        Error message

      • blocker: boolean = false

        If true, stop further validation

      Returns never

    • Abstract method - each validator must implement this

      Parameters

      • content: Buffer | Uint8Array

        The content to validate (can be string, buffer, object, etc.)

      • filename: string

        Name of the file being validated

      • filesize: number

        Size of the file in bytes

      Returns Promise<ValidationResult>