Class SchemaGeneratorForXSD
java.lang.Object
org.eclipse.lemminx.customservice.synapse.schemagen.util.AbstractSchemaGenerator
org.eclipse.lemminx.customservice.synapse.schemagen.util.SchemaGeneratorForJSON
org.eclipse.lemminx.customservice.synapse.schemagen.util.SchemaGeneratorForXML
org.eclipse.lemminx.customservice.synapse.schemagen.util.SchemaGeneratorForXSD
- All Implemented Interfaces:
ISchemaGenerator
-
Field Summary
Fields inherited from class org.eclipse.lemminx.customservice.synapse.schemagen.util.SchemaGeneratorForXML
AT_PREFIX, DOLLLAR_AT_PREFIX, XSI_NAMESPACE_URI, XSI_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeconvertXsModelToJsonSchemaElements(org.apache.xerces.xs.XSModel xsModel) generateJsonSchemaFromXsd(String xsdContent) getSchemaContent(String content, FileType type, String delimiter) getSchemaResourcePath(String filePath, FileType type, String delimiter) Methods inherited from class org.eclipse.lemminx.customservice.synapse.schemagen.util.SchemaGeneratorForXML
replaceAttributesWithElements
-
Constructor Details
-
SchemaGeneratorForXSD
public SchemaGeneratorForXSD()
-
-
Method Details
-
getSchemaResourcePath
public String getSchemaResourcePath(String filePath, FileType type, String delimiter) throws IOException - Specified by:
getSchemaResourcePathin interfaceISchemaGenerator- Overrides:
getSchemaResourcePathin classSchemaGeneratorForXML- Throws:
IOException
-
getSchemaContent
- Specified by:
getSchemaContentin interfaceISchemaGenerator- Overrides:
getSchemaContentin classSchemaGeneratorForXML- Throws:
IOException
-
generateJsonSchemaFromXsd
public String generateJsonSchemaFromXsd(String xsdContent) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
convertXsModelToJsonSchemaElements
public com.fasterxml.jackson.databind.JsonNode convertXsModelToJsonSchemaElements(org.apache.xerces.xs.XSModel xsModel)
-