Schema deserializer bootstrap.

Hierarchy

Implemented by

Accessors

  • get currentEntry(): undefined | string
  • Currently processed schema entry. This may be e.g. a serializer or deserializer name.

    undefined when processing nested schema. This happens e.g. when model processed explicitly rather automatically.

    Returns undefined | string

Methods

  • Requests the given attribute value to be parsed with the given schema.

    Type Parameters

    Parameters

    • attribute: string

      Target attribute.

    • schema: TSchema

      Attribute value schema.

    • Optional set: ((this, args, context) => EsSnippet)

      Emits code for attribute value assignment.

      By default, attribute will be added to metadata.

      Optional
        • (this, args, context): EsSnippet
        • Parameters

          • this: void
          • args: {
                cx: EsSnippet;
                rx: EsSnippet;
                value: EsSnippet;
            }

            Attribute value assignment arguments.

            • Readonly cx: EsSnippet

              Charge processing context.

            • Readonly rx: EsSnippet

              Charge receiver.

            • Readonly value: EsSnippet

              Attribute value.

          • context: EsDeclarationContext

            Declaration context of attribute handler function.

          Returns EsSnippet

    Returns UcdBootstrap

    this instance.

  • Assigns lexer to use by the given deserializer entry.

    Parameters

    • entry: string

      Target deserializer entry name.

    • createLexer: ((this, args) => EsSnippet)

      Lexer factory code generator.

        • (this, args): EsSnippet
        • Parameters

          • this: void
          • args: {
                emit: EsSnippet;
            }
            • emit: EsSnippet

          Returns EsSnippet

    Returns UcdBootstrap

    this instance.

Generated using TypeDoc