// Utility class, no public or protected default constructor
}
public static void render(StringBuilder buffer, ProcessorDefinition processor) {
buffer.append(".");
SendDefinition send = (SendDefinition)processor;
if (send instanceof WireTapDefinition) {
// for wireTap
buffer.append(send.getShortName());
buffer.append("(\"").append(send.getUri());
WireTapDefinition wireTap = (WireTapDefinition)send;
if (wireTap.getNewExchangeExpression() != null) {
String expression = wireTap.getNewExchangeExpression().toString();
buffer.append("\", ");
ExpressionRenderer.renderConstant(buffer, expression);
buffer.append(")");
} else {
buffer.append("\")");
}
} else if (send.getPattern() == null) {
// for to
buffer.append(send.getShortName());
buffer.append("(\"").append(send.getUri()).append("\")");
} else {
// for inOnly and inOut
if (send.getPattern().name().equals("InOnly")) {
buffer.append("inOnly");
} else if (send.getPattern().name().equals("InOut")) {
buffer.append("inOut");
}
buffer.append("(\"").append(send.getUri()).append("\")");
}
}