Class XsdGenerator

java.lang.Object
org.apache.rat.tools.xsd.XsdGenerator

public class XsdGenerator extends Object
Generates the XSD for a configuration.
  • Constructor Details

    • XsdGenerator

      public XsdGenerator()
  • Method Details

    • main

      public static void main(String[] args) throws IOException, TransformerException
      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

      public InputStream getInputStream() throws IOException
      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

      public void write(Writer output) throws IOException
      Writes the XSD to the output.
      Parameters:
      output - the output to write to.
      Throws:
      IOException - on write error.