public class XML2DTDGenerator extends AbstractXML2GrammarGenerator<DTDGeneratorSettings>
Constructor and Description |
---|
XML2DTDGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
generate(Grammar grammar,
DTDGeneratorSettings settings,
XMLBuilder dtd)
Generate the grammar content from the given grammar information into the
given builder.
|
protected String |
getFileExtension()
Returns the grammar file extension (ex : xsd, dtd) to generate.
|
protected boolean |
isFlat()
Returns true if element declaration must be stored as flat mode and false
otherwise.
|
generate
protected void generate(Grammar grammar, DTDGeneratorSettings settings, XMLBuilder dtd)
AbstractXML2GrammarGenerator
generate
in class AbstractXML2GrammarGenerator<DTDGeneratorSettings>
grammar
- the grammar information.settings
- the grammar settingsdtd
- the XML builder to update.protected String getFileExtension()
AbstractXML2GrammarGenerator
getFileExtension
in class AbstractXML2GrammarGenerator<DTDGeneratorSettings>
protected boolean isFlat()
AbstractXML2GrammarGenerator
isFlat
in class AbstractXML2GrammarGenerator<DTDGeneratorSettings>
Copyright © 2022. All rights reserved.