|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.beandoc.output.XslTransformer
org.springframework.beandoc.output.DotFileTransformer
public class DotFileTransformer
Generates graphs from the context files, firstly transforming the XML to an intermediate .dot file that GraphViz uses to generate the actual images. In addition, it will generate a consolidated image from all supplied context documents.
Field Summary |
---|
Fields inherited from class org.springframework.beandoc.output.XslTransformer |
---|
filenameStrategy, logger, staticParameters |
Constructor Summary | |
---|---|
DotFileTransformer()
constructs the Transformer with a default stylesheet included in the beandoc tool. |
|
DotFileTransformer(String templateName)
constructs the Transformer with the stylesheet provided. |
Method Summary | |
---|---|
protected String |
getOutputForDocument(String inputFileName)
Adds input files to a list for post-processing prior to returning the name of the output file. |
protected void |
initTransform(org.jdom.Document[] contextDocuments,
File outputDirectory)
Stores references to the context documents and output directory which it later uses to build a consolidated graph. |
protected void |
postTransform()
Generate a consolidated graph of the entire context using the same stylesheet reference provided on construction. |
Methods inherited from class org.springframework.beandoc.output.XslTransformer |
---|
doXslTransform, getParameters, getStaticParameters, getTemplateName, handleTransform, setFilenameStrategy, setLocale, setStaticParameters, setTemplateName, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DotFileTransformer()
public DotFileTransformer(String templateName)
templateName
- Method Detail |
---|
protected void initTransform(org.jdom.Document[] contextDocuments, File outputDirectory) throws Exception
initTransform
in class XslTransformer
contextDocuments
- the array of DOM trees about to be transformedoutputDirectory
- the file handle for the output directory
Exception
XslTransformer.initTransform(org.jdom.Document[], java.io.File)
protected String getOutputForDocument(String inputFileName)
getOutputForDocument
in class XslTransformer
inputFileName
- the original file name (not including path) of the
context file
XslTransformer.getOutputForDocument(java.lang.String)
protected void postTransform()
postTransform
in class XslTransformer
XslTransformer.postTransform()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |