public class SplittingModelWriter extends ModelWriter
Modifier and Type | Field and 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 and Description |
---|
SplittingModelWriter()
Creates a new instance.
|
Modifier and Type | Method and 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.
|
getModel, getSafeTags, getWriterSupport, setModel, write, writeClassDescription, writeCloseComment, writeComment, writeManualMapping, writeMultiplexMapping, writeOpenComment, writeStandardComment, writeTag, writeTag, writeXMLHeader
private HashNMap classDescriptionByPackage
private java.util.ArrayList sources
private java.io.File targetFile
private java.lang.String extension
private java.lang.String plainFileName
private HashNMap manualMappingByPackage
private HashNMap multiplexMappingByPackage
public void write(java.lang.String target) throws java.io.IOException
target
- the target file name.java.io.IOException
- if there is an I/O problem.private void writePackageFile(java.lang.String includeFileName) throws java.io.IOException
includeFileName
- the name of the file.java.io.IOException
- if there is an I/O problem.public static java.lang.String getPackage(java.lang.Class c)
c
- the class for which we search the package.private void writeMasterFile() throws java.io.IOException
java.io.IOException
- if there is an I/O problem.