Package org.jfree.xml.generator
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 Summary
Fields Modifier and Type Field Description private HashNMap
classDescriptionByPackage
??.private java.lang.String
extension
The file extension.private HashNMap
manualMappingByPackage
??.private HashNMap
multiplexMappingByPackage
??.private java.lang.String
plainFileName
The plain file name.private java.util.ArrayList
sources
The sources.private java.io.File
targetFile
The target file.
-
Constructor Summary
Constructors Constructor Description SplittingModelWriter()
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getPackage(java.lang.Class c)
Returns the name of the package for the given class.void
write(java.lang.String target)
Writes the model to the specified target.private void
writeMasterFile()
Writes the master file.private void
writePackageFile(java.lang.String includeFileName)
Writes a file for a package.-
Methods inherited from class org.jfree.xml.generator.ModelWriter
getModel, getSafeTags, getWriterSupport, setModel, write, writeClassDescription, writeCloseComment, writeComment, writeManualMapping, writeMultiplexMapping, writeOpenComment, writeStandardComment, writeTag, writeTag, writeXMLHeader
-
-
-
-
Field Detail
-
classDescriptionByPackage
private HashNMap classDescriptionByPackage
??.
-
sources
private java.util.ArrayList sources
The sources.
-
targetFile
private java.io.File targetFile
The target file.
-
extension
private java.lang.String extension
The file extension.
-
plainFileName
private java.lang.String plainFileName
The plain file name.
-
manualMappingByPackage
private HashNMap manualMappingByPackage
??.
-
multiplexMappingByPackage
private HashNMap multiplexMappingByPackage
??.
-
-
Method Detail
-
write
public void write(java.lang.String target) throws java.io.IOException
Writes the model to the specified target.- Parameters:
target
- the target file name.- Throws:
java.io.IOException
- if there is an I/O problem.
-
writePackageFile
private void writePackageFile(java.lang.String includeFileName) throws java.io.IOException
Writes a file for a package.- Parameters:
includeFileName
- the name of the file.- Throws:
java.io.IOException
- if there is an I/O problem.
-
getPackage
public static java.lang.String getPackage(java.lang.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 java.io.IOException
Writes the master file.- Throws:
java.io.IOException
- if there is an I/O problem.
-
-