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"); } } }
Field numInGroup = null; for (Object o : component.getMsgContent()) { if (o instanceof Field && ((Field) o).isNumInGroup()) { numInGroup = (Field) o; break;
Field numInGroup = null; for (Object o : component.getMsgContent()) { if (o instanceof Field && ((Field) o).isNumInGroup()) { numInGroup = (Field) o; break;
Field numInGroup = null; for (Object o : component.getMsgContent()) { if (o instanceof Field && ((Field) o).isNumInGroup()) { numInGroup = (Field) o; break;
Field numInGroup = null; for (Object o : component.getMsgContent()) { if (o instanceof Field && ((Field) o).isNumInGroup()) { numInGroup = (Field) o; break;