ColdDoc 1.0

colddoc.strategy.uml2tools
Class XMIStrategy

WEB-INF.cftags.component
        extended by colddoc.strategy.AbstractTemplateStrategy
            extended by colddoc.strategy.uml2tools.XMIStrategy

public class XMIStrategy
extends AbstractTemplateStrategy

Strategy for generating the .uml file for Eclipse UML2Tools to generate diagrams from


Constructor Summary
init(string outputFile)
          Constructor
 
Method Summary
private query determineProperties(struct meta, string package)
          We will make the assumption that is there is a get & set function with the same name, its a property
private string getOutputFile()
 void run(query qMetadata)
          run this strategy
private void setOutputFile(string outputFile)
 
Methods inherited from class colddoc.strategy.AbstractTemplateStrategy
_dump, _trace, buildFunctionMetaData, buildPackageTree, classExists, ensureDirectory, getFunctionQueryCache, getGenericTypes, getMetaSubQuery, getObjectName, getPackage, getPropertyMeta, isAbstractClass, isPrimitive, recursiveCopy, resolveClassName, safeFunctionMeta, safeParamMeta, setFunctionQueryCache, typeExists, visitPackageTree, writeTemplate
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(string outputFile)
Constructor

Parameters:
outputFile - absolute path to the output file. File should end in .uml, if it doesn' it will be added.
Method Detail

determineProperties

private query determineProperties(struct meta, string package)
We will make the assumption that is there is a get & set function with the same name, its a property

Parameters:
meta - the metadata for a class
package - the current package

getOutputFile

private string getOutputFile()


run

public void run(query qMetadata)
run this strategy

Overrides:
run in class AbstractTemplateStrategy
Parameters:
qMetadata - the meta data query

setOutputFile

private void setOutputFile(string outputFile)

Parameters:
outputFile

ColdDoc 1.0