Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PartialJSONImpl

A constraint that partially matches the current JSON topic value

Hierarchy

Implements

Index

Constructors

constructor

  • new PartialJSONImpl(withValues?: {}, withoutValues?: Set<string>): PartialJSONImpl
  • Create a new PartialJSONImpl instance

    Parameters

    • Default value withValues: {} = {}

      the values required to exist in the JSON value

    • Default value withoutValues: Set<string> = new Set()

      the JSON pointers that should hold no value

    Returns PartialJSONImpl

Properties

Readonly withValues

withValues: {}

The values required to exist in the JSON value indexed by their JSON pointer expression

Type declaration

Readonly withoutValues

withoutValues: Set<string>

The JSON pointer expressions that should be empty in the JSON value

Methods

and

  • Returns a composed constraint that represents a logical AND of this constraint and another.

    throws

    an IllegalArgumentError if the composed constraint would be unsatisfiable

    Parameters

    • other: UpdateConstraint

      a constraint that will be logically-ANDed with this constraint

    Returns UpdateConstraint

    a composed constraint that represents a logical AND of this constraint and the other constraint

Protected andBlockedFor

getConstraintType

getWithValues

  • getWithValues(): {}
  • Get the required JSON values

    Returns {}

    the a map of JSON values that are required

getWithoutValues

  • getWithoutValues(): Set<string>
  • Get the JSON pointer expressions that should be empty in the JSON value

    Returns Set<string>

    a set of pointer expressions

or

Private validateValue

with

without

  • inheritdoc

    Parameters

    Returns PartialJSON

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.