Class JsonSchemaOneOfNode

java.lang.Object
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.JsonSchemaNode
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.JsonSchemaOneOfNode

public class JsonSchemaOneOfNode extends JsonSchemaNode
The JsonSchemaOneOfNode class represents a JSON Schema node for the "oneOf" keyword. It extends the JsonSchemaNode class and provides methods to manage the "oneOf" schema.
  • Constructor Details

    • JsonSchemaOneOfNode

      public JsonSchemaOneOfNode()
      Constructs a new JsonSchemaOneOfNode with an empty JSON object node.
    • JsonSchemaOneOfNode

      public JsonSchemaOneOfNode(com.fasterxml.jackson.databind.node.ObjectNode node, String name)
      Constructs a new JsonSchemaOneOfNode with the specified JSON object node and name.
      Parameters:
      node - the JSON object node
      name - the name of the JSON Schema node
  • Method Details

    • setOneOf

      public void setOneOf(com.fasterxml.jackson.databind.node.ArrayNode oneOf)
      Sets the JSON array node representing the content of oneOf.
      Parameters:
      oneOf - the JSON array node containing objects