Class JsonSchemaOneOfNode
java.lang.Object
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.JsonSchemaNode
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.JsonSchemaOneOfNode
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.
-
Field Summary
Fields inherited from class org.eclipse.lemminx.customservice.synapse.schemagen.xsd.JsonSchemaNode
name, node -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new JsonSchemaOneOfNode with an empty JSON object node.JsonSchemaOneOfNode(com.fasterxml.jackson.databind.node.ObjectNode node, String name) Constructs a new JsonSchemaOneOfNode with the specified JSON object node and name. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetOneOf(com.fasterxml.jackson.databind.node.ArrayNode oneOf) Sets the JSON array node representing the content of oneOf.
-
Constructor Details
-
JsonSchemaOneOfNode
public JsonSchemaOneOfNode()Constructs a new JsonSchemaOneOfNode with an empty JSON object node. -
JsonSchemaOneOfNode
Constructs a new JsonSchemaOneOfNode with the specified JSON object node and name.- Parameters:
node- the JSON object nodename- 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
-