Package org.jfree.xml.generator
Class SplittingModelWriter
java.lang.Object
org.jfree.xml.generator.ModelWriter
org.jfree.xml.generator.SplittingModelWriter
A model writer that writes to multiple files.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPackage(Class c) Returns the name of the package for the given class.voidWrites the model to the specified target.private voidWrites the master file.private voidwritePackageFile(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 Details
-
classDescriptionByPackage
??. -
sources
The sources. -
targetFile
The target file. -
extension
The file extension. -
plainFileName
The plain file name. -
manualMappingByPackage
??. -
multiplexMappingByPackage
??.
-
-
Constructor Details
-
SplittingModelWriter
public SplittingModelWriter()Creates a new instance.
-
-
Method Details
-
write
Writes the model to the specified target.- Parameters:
target- the target file name.- Throws:
IOException- if there is an I/O problem.
-
writePackageFile
Writes a file for a package.- Parameters:
includeFileName- the name of the file.- Throws:
IOException- if there is an I/O problem.
-
getPackage
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
Writes the master file.- Throws:
IOException- if there is an I/O problem.
-