initialCode

Contains the initial text to insert into a roundtrip region.

DPTK will insert this text into the generated artifact if the artifact does not already exist or if the artifact exists but the begin and end text blocks for this roundtrip region can not be found in the previous version of the artifact.

See also <roundtrip>


Tag Summary
 
required <initialCode />
 
full tag <initialCode />

There are no required attributes
 

There are no optional attributes
 

Example
 
<initialCode >
//TODO add custom logic here
</initialCode>

This initialCode tag specifies that if the roundtrip region (defined by the surrounding roundtrip tag) is not present in the previous version of the generated file or if that file does not exist, yet, then this TODO comment will be written to the generated java source. Once the file has been generated and the developer has replaced the comment with custom code, subsequent applications of this pattern will no longer insert the TODO comment into the generated artifact. Instead, the parent roundtrip tag will re-use the modified code in the roundtrip region, thus maintaining those changes across re-applications of this pattern.


© Copyright IBM Corporation 2000, 2006. All Rights Reserved.