private void addMsgContents(StringBuilder builder, List<Object> msgContents, String prefix) { for (Object o : msgContents) { if (o instanceof Field) { Field field = (Field) o; if (field.isNumInGroup()) { continue; } builder.append(prefix).append("<field name=\"").append(field.getFieldName()).append("\" required=\"").append(field.isRequired() ? "Y" : "N").append("\"/>\n"); } else if (o instanceof Component) { Component component = (Component) o; if (component.isStandardHeader() || component.isStandardTrailer()) { continue; } builder.append(prefix).append("<component name=\"").append(component.getName()).append("\" required=\"").append(component.isRequired() ? "Y" : "N").append("\"/>\n"); } } }
private void addMsgContents(StringBuilder builder, List<Object> msgContents, String prefix) { for (Object o : msgContents) { if (o instanceof Field) { Field field = (Field) o; if (field.isNumInGroup()) { continue; } builder.append(prefix).append("<field name=\"").append(field.getFieldName()).append("\" required=\"").append(field.isRequired() ? "Y" : "N").append("\"/>\n"); } else if (o instanceof Component) { Component component = (Component) o; if (component.isStandardHeader() || component.isStandardTrailer()) { continue; } builder.append(prefix).append("<component name=\"").append(component.getName()).append("\" required=\"").append(component.isRequired() ? "Y" : "N").append("\"/>\n"); } } }
private void addMsgContents(StringBuilder builder, List<Object> msgContents, String prefix) { for (Object o : msgContents) { if (o instanceof Field) { Field field = (Field) o; if (field.isNumInGroup()) { continue; } builder.append(prefix).append("<field name=\"").append(field.getFieldName()).append("\" required=\"").append(field.isRequired() ? "Y" : "N").append("\"/>\n"); } else if (o instanceof Component) { Component component = (Component) o; if (component.isStandardHeader() || component.isStandardTrailer()) { continue; } builder.append(prefix).append("<component name=\"").append(component.getName()).append("\" required=\"").append(component.isRequired() ? "Y" : "N").append("\"/>\n"); } } }
private void addMsgContents(StringBuilder builder, List<Object> msgContents, String prefix) { for (Object o : msgContents) { if (o instanceof Field) { Field field = (Field) o; if (field.isNumInGroup()) { continue; } builder.append(prefix).append("<field name=\"").append(field.getFieldName()).append("\" required=\"").append(field.isRequired() ? "Y" : "N").append("\"/>\n"); } else if (o instanceof Component) { Component component = (Component) o; if (component.isStandardHeader() || component.isStandardTrailer()) { continue; } builder.append(prefix).append("<component name=\"").append(component.getName()).append("\" required=\"").append(component.isRequired() ? "Y" : "N").append("\"/>\n"); } } }
builder.append(" <group name=\"").append(numInGroup.getFieldName()).append("\" required=\"").append(numInGroup.isRequired() ? "Y" : "N").append("\">\n"); addMsgContents(builder, component.getMsgContent(), " "); builder.append(" </group>\n");
builder.append(" <group name=\"").append(numInGroup.getFieldName()).append("\" required=\"").append(numInGroup.isRequired() ? "Y" : "N").append("\">\n"); addMsgContents(builder, component.getMsgContent(), " "); builder.append(" </group>\n");
builder.append(" <group name=\"").append(numInGroup.getFieldName()).append("\" required=\"").append(numInGroup.isRequired() ? "Y" : "N").append("\">\n"); addMsgContents(builder, component.getMsgContent(), " "); builder.append(" </group>\n");
builder.append(" <group name=\"").append(numInGroup.getFieldName()).append("\" required=\"").append(numInGroup.isRequired() ? "Y" : "N").append("\">\n"); addMsgContents(builder, component.getMsgContent(), " "); builder.append(" </group>\n");