Class SplittingModelWriter

java.lang.Object
org.jfree.xml.generator.ModelWriter
org.jfree.xml.generator.SplittingModelWriter

public class SplittingModelWriter extends ModelWriter
A model writer that writes to multiple files.
  • Field Details

    • classDescriptionByPackage

      private HashNMap classDescriptionByPackage
      ??.
    • sources

      private ArrayList sources
      The sources.
    • targetFile

      private File targetFile
      The target file.
    • extension

      private String extension
      The file extension.
    • plainFileName

      private String plainFileName
      The plain file name.
    • manualMappingByPackage

      private HashNMap manualMappingByPackage
      ??.
    • multiplexMappingByPackage

      private HashNMap multiplexMappingByPackage
      ??.
  • Constructor Details

    • SplittingModelWriter

      public SplittingModelWriter()
      Creates a new instance.
  • Method Details

    • write

      public void write(String target) throws IOException
      Writes the model to the specified target.
      Parameters:
      target - the target file name.
      Throws:
      IOException - if there is an I/O problem.
    • writePackageFile

      private void writePackageFile(String includeFileName) throws IOException
      Writes a file for a package.
      Parameters:
      includeFileName - the name of the file.
      Throws:
      IOException - if there is an I/O problem.
    • getPackage

      public static String getPackage(Class c)
      Returns the name of the package for the given class. This is a workaround for the classloader behaviour of JDK1.2.2 where no package objects are created.
      Parameters:
      c - the class for which we search the package.
      Returns:
      the name of the package, never null.
    • writeMasterFile

      private void writeMasterFile() throws IOException
      Writes the master file.
      Throws:
      IOException - if there is an I/O problem.