Class: IPASchema

inPlaceApplicators~IPASchema(common, applicatorByPointer)

The node for a tree representation of the possible JSON Schema materializations regarding its in-place applicators (standing for "In-Place Application Schema").

Constructor

new IPASchema(common, applicatorByPointer)

Class constructor.

Parameters:
Name Type Description
common object

The keywords that are common to all possible materializations of the in-place application subtree.

applicatorByPointer Map.<string, module:inPlaceApplicators~InPlaceApplicator>

A map including the child in-place applicators to be contained by the node.

Source:

Members

applicatorByPointer :Map.<string, module:inPlaceApplicators~InPlaceApplicator>

A map including the child in-place applicators contained by the node.

Type:
Source:

common :object

The keywords that are common to all possible materializations of the in-place application subtree.

Type:
  • object
Source:

Methods

getAnnotations() → {object}

Retrieves the annotation-related keywords from the in-place application node.

Source:
Returns:

The JSON Schema subset representing the annotations at the top level.

Type
object

getSelectedApplicators() → (nullable) {Array.<module:inPlaceApplicators~IPASchema>}

Returns the nodes representing the selected in-place applicator subschemas.

Source:
Returns:

The array of selected in-place applicator subnodes, or null if the node has no child in-place applicators.

Type
Array.<module:inPlaceApplicators~IPASchema>

getSelectedSchema() → {object}

Retrieves the materialization of the JSON Schema that is currently selected.

Source:
Returns:

The selected materialization of the JSON Schema represented by the node.

Type
object