|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jlayercheck.util.HTMLOutput
public class HTMLOutput
Creates HTML output of the retrieved dependeny information.
| Field Summary | |
|---|---|
protected static Logger |
logger
|
protected String |
outputDir
The directory to write the HTML output to. |
| Constructor Summary | |
|---|---|
HTMLOutput(String outputDir)
|
|
| Method Summary | |
|---|---|
protected void |
copyImage(String resourceName,
String filename,
String outputDir)
Copies the names resource to the given destination directory. |
static String |
formatPackageName(String classPackageName)
Replaces "/" by "." to create a package name in the format the user expects to see. |
void |
write(DependencyVisitor dv,
XMLConfiguration xcp)
Writes the dependency information that was found into human readable HTML files containing the Java source code. |
protected void |
writeDependencyViolations(DependencyVisitor dv,
XMLConfiguration xcp,
PrintWriter pw,
Map<String,Map<String,ClassDependency>> unallowedDependencies,
Map<String,URL> sourceFiles)
Writes a list of dependency violations to the given PrintWriter using html. |
protected void |
writeOrphanedClasses(DependencyVisitor dv,
XMLConfiguration xcp,
PrintWriter pw)
|
protected void |
writeSourceFile(String filename,
String content,
Map<Integer,String> markedLines)
Writes the given java source into the given file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger logger
protected String outputDir
| Constructor Detail |
|---|
public HTMLOutput(String outputDir)
| Method Detail |
|---|
public void write(DependencyVisitor dv,
XMLConfiguration xcp)
throws IOException
dv - the DependencyVisitor containing the dependency informationxcp - the configuration that determines the architecture
IOException
protected void writeDependencyViolations(DependencyVisitor dv,
XMLConfiguration xcp,
PrintWriter pw,
Map<String,Map<String,ClassDependency>> unallowedDependencies,
Map<String,URL> sourceFiles)
throws IOException,
OverlappingModulesDefinitionException
dv - xcp - pw - unallowedDependencies - sourceFiles -
IOException
OverlappingModulesDefinitionException
protected void writeOrphanedClasses(DependencyVisitor dv,
XMLConfiguration xcp,
PrintWriter pw)
protected void copyImage(String resourceName,
String filename,
String outputDir)
throws IOException
resourceName - the name of the resource to loadfilename - the filename to save tooutputDir - the destination directory
IOException
protected void writeSourceFile(String filename,
String content,
Map<Integer,String> markedLines)
throws IOException
filename - output filenamecontent - java sourcemarkedLines - a Map containing the line number and the message for this line
IOExceptionpublic static String formatPackageName(String classPackageName)
classPackageName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||