Class SimpleTypeProcessor

java.lang.Object
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.SimpleTypeProcessor
All Implemented Interfaces:
TypeProcessor

public class SimpleTypeProcessor extends Object implements TypeProcessor
The SimpleTypeProcessor class processes XML Schema simple type definitions and converts them into JSON Schema nodes.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    processRootType(org.apache.xerces.xs.XSElementDeclaration element, com.fasterxml.jackson.databind.node.ObjectNode node, String id, boolean addTitle)
    Processes the root XML Schema element declaration and updates the provided JSON Schema object node.
    void
    processType(org.apache.xerces.xs.XSElementDeclaration element, org.apache.xerces.xs.XSParticle elementStructure, com.fasterxml.jackson.databind.node.ObjectNode node, String id, boolean addTitle)
    Processes an XML Schema element declaration and updates the provided JSON Schema object node.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimpleTypeProcessor

      public SimpleTypeProcessor()
  • Method Details

    • processType

      public void processType(org.apache.xerces.xs.XSElementDeclaration element, org.apache.xerces.xs.XSParticle elementStructure, com.fasterxml.jackson.databind.node.ObjectNode node, String id, boolean addTitle)
      Processes an XML Schema element declaration and updates the provided JSON Schema object node.
      Specified by:
      processType in interface TypeProcessor
      Parameters:
      element - the XML Schema element declaration
      elementStructure - the XML Schema particle structure
      node - the JSON Schema object node to update
      id - the identifier for the JSON Schema node
      addTitle - flag indicating if the title should be added
    • processRootType

      public void processRootType(org.apache.xerces.xs.XSElementDeclaration element, com.fasterxml.jackson.databind.node.ObjectNode node, String id, boolean addTitle)
      Processes the root XML Schema element declaration and updates the provided JSON Schema object node.
      Specified by:
      processRootType in interface TypeProcessor
      Parameters:
      element - the XML Schema element declaration
      node - the JSON Schema object node to update
      id - the identifier for the JSON Schema node
      addTitle - flag indicating if the title should be added