Pattern Template Tags

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.

Simple merge tags

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.

Conditional inclusion

Template sections can be conditionally processed using the <case>, <cond>, <default>, <exists>, <include>, <nexists> and <select> tags.

XML transform

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.

Iteration

Tags like <iterate> <directoryEntries> and <stringTokens> will repeatedly apply nested template sections.

Eclipse resource creation

Eclipse resources (projects, folders, files and tasks) can be created using tags such as <marker>, <newFolder>, <newProject>, <rebuildWorkspace>, <start> and <targetProject>.

Roundtripping

User modifications to generated code can be preserved using the <initialCode> and <roundtrip> tags.

General Purpose

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.