|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.metadata.MetadataParser
public class MetadataParser
This class is the entry point for parsing either xsd or dtd files, and based on the extracted metadata information, the class is also able to produce Shrinkdesc API and implementation source code. is parsed.
The class will start a DTD parsing when the files are ending with '.dtd'. Otherwise, the files are considered as XSD's.
Constructor Summary | |
---|---|
MetadataParser()
|
Method Summary | |
---|---|
void |
generateCode(MetadataParserPath path)
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,
boolean verbose)
Parses one or more XSD schemas or DTD and produces java classes based on the parsing results. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetadataParser()
Method Detail |
---|
public Metadata getMetadata()
public void parse(MetadataParserPath path, List<?> confList, 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.
Exception
public void generateCode(MetadataParserPath path) throws TransformerException
ddJavaAll.xsl
XSLT extracted from the resource stream.
TransformerException
public String getPathToMetadataFile()
parse
method is executed successfully.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |