public class Channel implements PoliteVisitor(Code)
Transformation channel. Matches UML elements by type, stereotype and
generation language. One UML element can match more than one channel.
author: Pavel Vlasov version: $Revision: 1.1 $
Context entry which will be available in templates. Overrides entry with
the same name defined at task level.
Parameters: param - throws: BuildException -
Nested transformation channel. Nested channel inherits parent's context
objects, applies only to model elements matched by the parent or below
and matches only if parent matches and nested channel matches. Can be
useful for, say, generating only classes from particular packages.
Set this to true to append to existing file instead of overwriting
Parameters: append -
setConditionExpression
public void setConditionExpression(String conditionExpression)(Code)
Condition XPath expression. Must evaluate to true for channel to match.
This is a more advanced then matching by stereotype or element name and
not that complicates as writing custom Acceptor class.
Parameters: stereotype -
setFileNameTemplate
public void setFileNameTemplate(String fileNameTemplate)(Code)
File name template. The template is evaluated by the same engine as the
template, all context objects are available during evaluation.
Parameters: fileNameTemplate -
Indicates that this channel is invisible for a visitor. Default is
false. Set it to true if you want channels for include only.
Parameters: hidden -
setIteratorExpression
public void setIteratorExpression(String iteratorExpression)(Code)
Iterator XPath expression. If iteratorExpression is set then Channel
doesn't process the matched element but applies XPath expression to the
elment and processes results.
Parameters: iteratorExpression -
setLeaveChannel
public void setLeaveChannel(boolean isLeaveChannel)(Code)
If true then template processing happens in "leave" method instead of "visit" method.
Parameters: isLeaveChannel -