| |
|
| java.lang.Object org.andromda.core.cartridge.Resource org.andromda.core.cartridge.template.Template
Template | public class Template extends Resource (Code) | | This class implements the <template> tag in a cartridge
descriptor file.
author: Matthias Bohlen author: Anthony Mowers author: Chad Brandon |
Constructor Summary | |
public | Template() The default constructor used by the
XmlObjectFactory to instantiate the template configuration. |
Method Summary | |
public File | getOutputLocation(String metafacadeName, String packageName, File directory, String outputPattern) Returns the fully qualified output file, this means:
- the output pattern has been translated
- the output dir name has been prepended
Parameters: metafacadeName - name of the metafacade. Parameters: packageName - name of the package from the model in which the classis contained Parameters: directory - the directory as a File. Parameters: outputPattern - if defined, this overrides the value of Resource.getOutputPattern. | public ModelElements | getSupportedModeElements() Tells us the model elements that are supported by this template (i.e. | public boolean | isGenerateEmptyFiles() Tells us whether output files are generated by this template if the template produces empty output. | public boolean | isOutputOnEmptyElements() Indicates that when there are no elements in the collection of elements (when
Template.isOutputToSingleFile() is
true , whether or not the file should be output. | public boolean | isOutputToSingleFile() If output to single file is true then all model elements found by the processor (i.e. | public void | setGenerateEmptyFiles(boolean generateEmptyFiles) Tells us whether output files should be generated if this template does not produce any output. | public void | setOutputOnEmptyElements(boolean outputOnEmptyElements) Sets whether or not we should output a file when no elements exist in the collection of elements when
Template.isOutputToSingleFile() returns true . | public void | setOutputToSingleFile(boolean outputToSingleFile) Sets whether or not we should aggregate elements and output to a single file. | public void | setSupportedModelElements(ModelElements supportedModelElements) Sets the model elements that are suported by this template. | public String | toString() |
Template | public Template()(Code) | | The default constructor used by the
XmlObjectFactory to instantiate the template configuration.
|
getOutputLocation | public File getOutputLocation(String metafacadeName, String packageName, File directory, String outputPattern)(Code) | | Returns the fully qualified output file, this means:
- the output pattern has been translated
- the output dir name has been prepended
Parameters: metafacadeName - name of the metafacade. Parameters: packageName - name of the package from the model in which the classis contained Parameters: directory - the directory as a File. Parameters: outputPattern - if defined, this overrides the value of Resource.getOutputPattern. File absolute directory. |
isGenerateEmptyFiles | public boolean isGenerateEmptyFiles()(Code) | | Tells us whether output files are generated by this template if the template produces empty output.
boolean |
isOutputToSingleFile | public boolean isOutputToSingleFile()(Code) | | If output to single file is true then all model elements found by the processor (i.e. all those
having matching modelElements) will aggregated and output to one single file.
Returns the outputToSingleFile. |
setGenerateEmptyFiles | public void setGenerateEmptyFiles(boolean generateEmptyFiles)(Code) | | Tells us whether output files should be generated if this template does not produce any output.
Parameters: generateEmptyFiles - generate files for empty output yes/no |
setOutputToSingleFile | public void setOutputToSingleFile(boolean outputToSingleFile)(Code) | | Sets whether or not we should aggregate elements and output to a single file.
Parameters: outputToSingleFile - The outputToSingleFile to set. |
|
|
|