Class XML2RelaxNGCompactGenerator
java.lang.Object
org.eclipse.lemminx.extensions.generators.AbstractXML2GrammarGenerator<RelaxNGCompactGeneratorSettings>
org.eclipse.lemminx.extensions.generators.xml2rnc.XML2RelaxNGCompactGenerator
- All Implemented Interfaces:
IFileContentGenerator<Document,RelaxNGCompactGeneratorSettings>
public class XML2RelaxNGCompactGenerator
extends AbstractXML2GrammarGenerator<RelaxNGCompactGeneratorSettings>
File Generator implementation to generate RelaxNG Compact Syntax (.rnc) from
a given XML source.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerate(Grammar grammar, RelaxNGCompactGeneratorSettings settings, XMLBuilder rnc, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Generate the grammar content from the given grammar information into the given builder.generate(Document prototypeDocument, SharedSettings sharedSettings, RelaxNGCompactGeneratorSettings generatorSettings, IXMLFullFormatter formatter, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Generates a file content (ex : XSD, DTD) from the given document sourcedocument(ex: XML) by using the given settingsgeneratorSettings.protected StringReturns the grammar file extension (ex : xsd, dtd) to generate.Methods inherited from class org.eclipse.lemminx.extensions.generators.AbstractXML2GrammarGenerator
isFlat
-
Constructor Details
-
XML2RelaxNGCompactGenerator
public XML2RelaxNGCompactGenerator()
-
-
Method Details
-
generate
protected void generate(Grammar grammar, RelaxNGCompactGeneratorSettings settings, XMLBuilder rnc, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Description copied from class:AbstractXML2GrammarGeneratorGenerate the grammar content from the given grammar information into the given builder.- Specified by:
generatein classAbstractXML2GrammarGenerator<RelaxNGCompactGeneratorSettings>- Parameters:
grammar- the grammar information.settings- the grammar settingsrnc- the XML builder to update.cancelChecker-
-
getFileExtension
Description copied from class:AbstractXML2GrammarGeneratorReturns the grammar file extension (ex : xsd, dtd) to generate.- Specified by:
getFileExtensionin classAbstractXML2GrammarGenerator<RelaxNGCompactGeneratorSettings>- Returns:
- the grammar file extension (ex : xsd, dtd) to generate.