xdoclet.modules.ejb.entity
public class ValueObjectSubTask extends AbstractEjbCodeGeneratorSubTask
Version: $Revision: 1.16 $
UNKNOWN: Feb 5, 2002 display-name = "Value Object" name = "valueobject" parent = "xdoclet.modules.ejb.EjbDocletTask" file = "valueobject-custom.xdt" relates-to = "{0}Value.java" description = "A text file containing * custom template and/or java code to include in the value object class."
Field Summary | |
---|---|
protected XTag | currentDataObjectTag
Form tag being processed right now |
static String | DEFAULT_DATAOBJECT_CLASS_PATTERN |
protected static String | DEFAULT_TEMPLATE_FILE |
protected String | valueObjectClassPattern
A configuration parameter for specifying the data object class name pattern. |
Constructor Summary | |
---|---|
ValueObjectSubTask()
Describe what the ValueObjectSubTask constructor does |
Method Summary | |
---|---|
protected void | engineStarted()
Describe what the method does
|
protected void | generateForClass(XClass clazz)
Describe what the method does
|
static String | getCurrentValueObjectClass()
Gets the CurrentValueObjectClass attribute of the ValueObjectSubTask class
|
static String | getCurrentValueObjectExtends() |
static String | getCurrentValueObjectImplements() |
static String | getCurrentValueObjectMatch()
Gets the CurrentValueObjectMatch attribute of the ValueObjectSubTask class
|
static String | getCurrentValueObjectName()
Gets the CurrentValueObjectName attribute of the ValueObjectSubTask class
|
protected String | getGeneratedFileName(XClass clazz)
Gets the GeneratedFileName attribute of the ValueObjectSubTask object
|
boolean | getGeneratePKConstructor() |
String | getValueObjectClassPattern()
Returns the configuration parameter for specifying the data object class name pattern. |
protected boolean | matchesGenerationRules(XClass clazz)
Describe what the method does
|
void | setGeneratePKConstructor(String generatePKConstructor)
Whether to generate a single-parameter constructor in the ValueObject, which only sets up the PK.
|
void | setPattern(String new_pattern)
The pattern by which the value object classes are named. |
void | validateOptions()
Called to validate configuration parameters.
|
See Also: getValueObjectClassPattern
Throws: XDocletException
Parameters: clazz Describe what the parameter does
Throws: XDocletException
Returns: The CurrentValueObjectClass value
Returns: The CurrentValueObjectMatch value
Returns: The CurrentValueObjectName value
Parameters: clazz Describe what the parameter does
Returns: The GeneratedFileName value
Throws: XDocletException
Returns: The ValueObjectClassPattern value
See Also: valueObjectClassPattern
Parameters: clazz Describe what the parameter does
Returns: Describe the return value
Throws: XDocletException
Parameters: generatePKConstructor The new GeneratePKConstructor value
UNKNOWN: No,defaultis false
Parameters: new_pattern The new Pattern value
UNKNOWN: "No, default is '{0}Value'"
Throws: XDocletException