
public class MetadataParser extends Object
The class will start a DTD parsing when the files are ending with '.dtd'. Otherwise, the files are considered as XSD's.
| Constructor and Description |
|---|
MetadataParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateCode(MetadataParserPath path,
boolean verbose)
Generates source code by applying the
ddJavaAll.xsl XSLT extracted from the resource stream. |
Metadata |
getMetadata() |
String |
getPathToMetadataFile()
Returns the path and name of the generated metadata xml file, if configured to produce it and the
parse method is executed successfully. |
void |
parse(MetadataParserPath path,
List<?> confList,
List<?> javadocTags,
boolean verbose)
Parses one or more XSD schemas or DTD and produces java classes based on the parsing results.
|
public Metadata getMetadata()
public void parse(MetadataParserPath path, List<?> confList, List<?> javadocTags, boolean verbose) throws Exception
path - specifies where to create the interface, implementation and test case java classes.confList - list MetadataParserConfiguration objects.verbose - if true, additional parsing information are printed out, otherwise not.Exceptionpublic void generateCode(MetadataParserPath path, boolean verbose) throws TransformerException
ddJavaAll.xsl XSLT extracted from the resource stream.TransformerExceptionpublic String getPathToMetadataFile()
parse method is executed successfully.Copyright © 2021 JBoss by Red Hat. All rights reserved.