*/
protected void marshalAttributes( final StringBuilder buf,
final RuleModel model ) {
boolean hasDialect = false;
for ( int i = 0; i < model.attributes.length; i++ ) {
RuleAttribute attr = model.attributes[ i ];
buf.append( "\t" );
buf.append( attr );
buf.append( "\n" );
if ( attr.getAttributeName().equals( "dialect" ) ) {
constraintValueBuilder = DRLConstraintValueBuilder.getBuilder( attr.getValue() );
hasDialect = true;
}
}
// Un comment below for mvel
if ( !hasDialect ) {
RuleAttribute attr = new RuleAttribute( "dialect",
DRLConstraintValueBuilder.DEFAULT_DIALECT );
buf.append( "\t" );
buf.append( attr );
buf.append( "\n" );
}