xdoclet.modules.mockobjects

Class MockObjectSubTask

Implemented Interfaces:
Serializable

public class MockObjectSubTask
extends xdoclet.TemplateSubTask

Subtask for mockobject.
Authors:
Joe Walnes
Stig Jørgensen
ant.element
name = "mockobjects" display-name = "Mockmaker" parent = "xdoclet.modules.mockobjects.MockObjectDocletTask"
created
5. februar 2003

Nested Class Summary

Nested classes/interfaces inherited from class xdoclet.TemplateSubTask

TemplateSubTask.ExtentTypes, TemplateSubTask.OfType

Field Summary

Fields inherited from class xdoclet.DocletSupport

currentClassTag, currentFieldTag, currentMethodTag

Constructor Summary

MockObjectSubTask()
Initialize the default behaviour.

Method Summary

protected String
getGeneratedFileName(XClass clazz)
Gets the GeneratedFileName attribute of the DaoSubTask object
String
getMockClassPattern()
Returns the mockClassPattern.
protected boolean
matchesGenerationRules(XClass clazz)
void
setMockClassPattern(String mockClassPattern)
Sets the mockClassPattern.

Methods inherited from class xdoclet.TemplateSubTask

addOfType, addOfType, addPackageSubstitution, copyAttributesFrom, engineFinished, engineStarted, execute, generateForClass, getAcceptAbstractClasses, getAcceptInterfaces, getDestinationFile, getEngine, getExtent, getGeneratedFileName, getGenerationManager, getHavingClassTag, getOfType, getPackageSubstitutions, getSubTaskClassName, getTemplateURL, init, isPackageSubstitutionInheritanceSupported, isPrefixWithPackageStructure, javaFile, matchesGenerationRules, processInnerClasses, setAcceptAbstractClasses, setAcceptInterfaces, setDestinationFile, setEngine, setExtent, setExtentValue, setGenerationManager, setHavingClassTag, setOfType, setPackageSubstitutionInheritanceSupported, setPackageSubstitutions, setPrefixWithPackageStructure, setSubTaskClassName, setTemplateFile, setTemplateURL, startEngine, startProcess, startProcessForAll, startProcessPerClass, validateOptions

Methods inherited from class xdoclet.SubTask

addConfigParam, copyAttributesFrom, execute, getConfigParams, getConfigParamsAsMap, getContext, getDestDir, getMergeDir, getSubTaskName, getXJavaDoc, init, setDestDir, setMergeDir, setSubTaskName, validateOptions

Methods inherited from class xdoclet.DocletSupport

getCurrentClass, getCurrentClassTag, getCurrentConstructor, getCurrentField, getCurrentFieldTag, getCurrentMethod, getCurrentMethodTag, getCurrentPackage, getCurrentTag, isDocletGenerated, popCurrentClass, pushCurrentClass, setCurrentClass, setCurrentClassTag, setCurrentConstructor, setCurrentField, setCurrentFieldTag, setCurrentMethod, setCurrentMethodTag, setCurrentPackage

Constructor Details

MockObjectSubTask

public MockObjectSubTask()
Initialize the default behaviour.

Method Details

getGeneratedFileName

protected String getGeneratedFileName(XClass clazz)
            throws xdoclet.XDocletException
Gets the GeneratedFileName attribute of the DaoSubTask object
Overrides:
getGeneratedFileName in interface xdoclet.TemplateSubTask
Parameters:
clazz - Describe what the parameter does
Returns:
The GeneratedFileName value
Throws:
xdoclet.XDocletException -

getMockClassPattern

public String getMockClassPattern()
Returns the mockClassPattern.
Returns:
String the mockClassPattern.

matchesGenerationRules

protected boolean matchesGenerationRules(XClass clazz)
            throws xdoclet.XDocletException
Overrides:
matchesGenerationRules in interface xdoclet.TemplateSubTask
Parameters:
clazz -
Returns:
Throws:
xdoclet.XDocletException -
See Also:
xdoclet.TemplateSubTask.matchesGenerationRules(xjavadoc.XClass)

setMockClassPattern

public void setMockClassPattern(String mockClassPattern)
Sets the mockClassPattern.
Parameters:
mockClassPattern - The mockClassPattern to set