Class XsdHelper


  • public class XsdHelper
    extends Object
    Main helper class for all xsd related function
    • Constructor Detail

      • XsdHelper

        public XsdHelper()
    • Method Detail

      • getSchemaPath

        public static URL getSchemaPath​(String xsdName)
                                 throws IOException
        It will search xsds first, otherwise it will search across classpath
        Returns:
        URL of the xsd file
        Throws:
        IOException
      • buildConfigDefinition

        public static ConfigDefinition buildConfigDefinition​(String configName,
                                                             String xsdName,
                                                             String topLevelElement,
                                                             String basePath)
        It help to convert xsd to openapi and prepare all metadata needed
        Parameters:
        configName -
        xsdName -
        topLevelElement -
        Returns:
        ConfigDefinition
      • buildConfigDefinition

        public static ConfigDefinition buildConfigDefinition​(String configName,
                                                             String xsdName,
                                                             String topLevelElement,
                                                             String basePath,
                                                             boolean allowMultiple)
        It help to convert xsd to openapi and prepare all metadata needed
        Parameters:
        configName -
        xsdName -
        topLevelElement -
        basePath -
        allowMultiple -
        Returns:
        ConfigDefinition