Package org.apache.rat.tools.xsd
Class XsdGenerator
java.lang.Object
org.apache.rat.tools.xsd.XsdGenerator
Generates the XSD for a configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an input stream from the output of the generator.static void
Command line that accepts standard RAT CLI command line options and generates an XSD from the configuration.void
Writes the XSD to the output.
-
Constructor Details
-
XsdGenerator
public XsdGenerator()
-
-
Method Details
-
main
Command line that accepts standard RAT CLI command line options and generates an XSD from the configuration.- Parameters:
args
- the arguments for RAT CLI.- Throws:
IOException
- on IO errors.TransformerException
- if the XSD can not be pretty printed.
-
getInputStream
Create an input stream from the output of the generator.- Returns:
- an InputStream that contains the output of the generator.
- Throws:
IOException
- on output errors.
-
write
Writes the XSD to the output.- Parameters:
output
- the output to write to.- Throws:
IOException
- on write error.
-