@Override
protected void marshalRuleHeader( final RuleModel model,
final StringBuilder buf ) {
//Append Template header
TemplateModel templateModel = (TemplateModel) model;
buf.append( "template header\n" );
InterpolationVariable[] interpolationVariables = templateModel.getInterpolationVariablesList();
if ( interpolationVariables.length == 0 ) {
buf.append( "test_var" ).append( '\n' );
} else {
for ( InterpolationVariable var : interpolationVariables ) {
buf.append( var.getVarName() ).append( '\n' );