There are a number of tags available to specify how the application definition (XML in the appdef) is to be transformed and merged with a pattern's template.
Tags such as <attr>, <content>, <dump>, <milliseconds>, <sum> and <unique> provide the ability to insert data directly into the static template text when the pattern is applied.
Template sections can be conditionally processed using the <case>, <cond>, <default>, <exists>, <include>, <nexists> and <select> tags.
There will be situations in which the XML in the input application definition needs to be transformed or otherwise modified before the templates are applied. Tags like <copyNode>, <extend>, <newNode>, <newText>, <setAttr> and <prune> will modify the input XML.
Tags like <iterate> <directoryEntries> and <stringTokens> will repeatedly apply nested template sections.
Eclipse resources (projects, folders, files and tasks) can be created using tags such as <marker>, <newFolder>, <newProject>, <rebuildWorkspace>, <start> and <targetProject>.
User modifications to generated code can be preserved using the <initialCode> and <roundtrip> tags.
When writing clean, reusable patterns, pattern developers may find the <genParm>, <overrides>, <statusMessage>, <useNode>, <workingSet> and <zilch> tags to be useful.
© Copyright IBM Corporation 2000,
2005. All Rights Reserved.