private Set<String> getAllComponentsUsed(Map<String, MsgType> msgTypes) { Set<String> result = new HashSet<>(); for (MsgType msgType : msgTypes.values()) { result = addComponents(result, msgType.getMsgContent()); } System.out.println("Components used: " + result); return result; }
String category = getSingleNodeTextSafe(node, "Category"); String msgType = getSingleNodeTextSafe(node, "MsgType"); msgTypeMap.put(msgType, new MsgType(msgID, messageName, componentType, category, notReqXML, msgType)); List<?> msgContentsNodes = getMsgContents(msgType.getMsgID()); System.out.println("\t " + msgType.getName()); for (Object o : msgContentsNodes) { Node node = (Node) o; msgType.addMsgContent(msgTypeField); System.out.println("\t\t " + allFields.get(tagText).getFieldName()); msgType.addMsgContent(msgTypeComponent); System.out.println("\t\t " + allComponents.get(tagText).getName()); } else {
builder.append(" <messages>\n"); for (MsgType msgType : msgTypes.values()) { if (msgType.getMsgType().equals("n")) { builder.append(" <!-- \n"); builder.append(" <message name=\"").append(msgType.getName()).append("\" msgtype=\"").append(msgType.getMsgType()).append("\" msgcat=\"").append(msgcat).append("\">\n"); addMsgContents(builder, msgType.getMsgContent(), " "); builder.append(" </message>\n"); if (msgType.getMsgType().equals("n")) { builder.append(" --> \n"); builder.append(" <messages>\n"); for (MsgType msgType : msgTypes.values()) { String msgcat = msgType.getCategory().equals("Session") ? "admin" : "app"; if (msgType.getMsgType().equals("n")) { builder.append(" <!-- \n"); builder.append(" <message name=\"").append(msgType.getName()).append("\" msgtype=\"").append(msgType.getMsgType()).append("\" msgcat=\"").append(msgcat).append("\">\n"); addMsgContents(builder, msgType.getMsgContent(), " "); builder.append(" </message>\n"); if (msgType.getMsgType().equals("n")) { builder.append(" --> \n");
String category = getSingleNodeTextSafe(node, "Category"); String msgType = getSingleNodeTextSafe(node, "MsgType"); msgTypeMap.put(msgType, new MsgType(msgID, messageName, componentType, category, notReqXML, msgType)); List<?> msgContentsNodes = getMsgContents(msgType.getMsgID()); System.out.println("\t " + msgType.getName()); for (Object o : msgContentsNodes) { Node node = (Node) o; msgType.addMsgContent(msgTypeField); System.out.println("\t\t " + allFields.get(tagText).getFieldName()); msgType.addMsgContent(msgTypeComponent); System.out.println("\t\t " + allComponents.get(tagText).getName()); } else {
builder.append(" <messages>\n"); for (MsgType msgType : msgTypes.values()) { if (msgType.getMsgType().equals("n")) { builder.append(" <!-- \n"); builder.append(" <message name=\"").append(msgType.getName()).append("\" msgtype=\"").append(msgType.getMsgType()).append("\" msgcat=\"").append(msgcat).append("\">\n"); addMsgContents(builder, msgType.getMsgContent(), " "); builder.append(" </message>\n"); if (msgType.getMsgType().equals("n")) { builder.append(" --> \n"); builder.append(" <messages>\n"); for (MsgType msgType : msgTypes.values()) { String msgcat = msgType.getCategory().equals("Session") ? "admin" : "app"; if (msgType.getMsgType().equals("n")) { builder.append(" <!-- \n"); builder.append(" <message name=\"").append(msgType.getName()).append("\" msgtype=\"").append(msgType.getMsgType()).append("\" msgcat=\"").append(msgcat).append("\">\n"); addMsgContents(builder, msgType.getMsgContent(), " "); builder.append(" </message>\n"); if (msgType.getMsgType().equals("n")) { builder.append(" --> \n");
String category = getSingleNodeTextSafe(node, "Category"); String msgType = getSingleNodeTextSafe(node, "MsgType"); msgTypeMap.put(msgType, new MsgType(msgID, messageName, componentType, category, notReqXML, msgType)); List<?> msgContentsNodes = getMsgContents(msgType.getMsgID()); System.out.println("\t " + msgType.getName()); for (Object o : msgContentsNodes) { Node node = (Node) o; msgType.addMsgContent(msgTypeField); System.out.println("\t\t " + allFields.get(tagText).getFieldName()); msgType.addMsgContent(msgTypeComponent); System.out.println("\t\t " + allComponents.get(tagText).getName()); } else {
builder.append(" <messages>\n"); for (MsgType msgType : msgTypes.values()) { if (msgType.getMsgType().equals("n")) { builder.append(" <!-- \n"); builder.append(" <message name=\"").append(msgType.getName()).append("\" msgtype=\"").append(msgType.getMsgType()).append("\" msgcat=\"").append(msgcat).append("\">\n"); addMsgContents(builder, msgType.getMsgContent(), " "); builder.append(" </message>\n"); if (msgType.getMsgType().equals("n")) { builder.append(" --> \n"); builder.append(" <messages>\n"); for (MsgType msgType : msgTypes.values()) { String msgcat = msgType.getCategory().equals("Session") ? "admin" : "app"; if (msgType.getMsgType().equals("n")) { builder.append(" <!-- \n"); builder.append(" <message name=\"").append(msgType.getName()).append("\" msgtype=\"").append(msgType.getMsgType()).append("\" msgcat=\"").append(msgcat).append("\">\n"); addMsgContents(builder, msgType.getMsgContent(), " "); builder.append(" </message>\n"); if (msgType.getMsgType().equals("n")) { builder.append(" --> \n");
public final Component getStandardHeader(MsgType msgType) { for (Object o : msgType.getMsgContent()) { if (o instanceof Component && ((Component) o).isStandardHeader()) { return (Component) o; } } return null; }
String category = node.selectSingleNode("Category").getText(); String msgType = node.selectSingleNode("MsgType").getText(); msgTypeMap.put(msgType, new MsgType(msgID, messageName, componentType, category, notReqXML, msgType)); List<?> msgContentsNodes = getMsgContents(msgType.getMsgID()); System.out.println("\t " + msgType.getName()); for (Object o : msgContentsNodes) { Node node = (Node) o; msgType.addMsgContent(msgTypeField); System.out.println("\t\t " + allFields.get(tagText).getFieldName()); msgType.addMsgContent(msgTypeComponent); System.out.println("\t\t " + allComponents.get(tagText).getName()); } else {
builder.append(" <messages>\n"); for (MsgType msgType : msgTypes.values()) { if (msgType.getMsgType().equals("n")) { builder.append(" <!-- \n"); builder.append(" <message name=\"").append(msgType.getName()).append("\" msgtype=\"").append(msgType.getMsgType()).append("\" msgcat=\"").append(msgcat).append("\">\n"); addMsgContents(builder, msgType.getMsgContent(), " "); builder.append(" </message>\n"); if (msgType.getMsgType().equals("n")) { builder.append(" --> \n"); builder.append(" <messages>\n"); for (MsgType msgType : msgTypes.values()) { String msgcat = msgType.getCategory().equals("Session") ? "admin" : "app"; if (msgType.getMsgType().equals("n")) { builder.append(" <!-- \n"); builder.append(" <message name=\"").append(msgType.getName()).append("\" msgtype=\"").append(msgType.getMsgType()).append("\" msgcat=\"").append(msgcat).append("\">\n"); addMsgContents(builder, msgType.getMsgContent(), " "); builder.append(" </message>\n"); if (msgType.getMsgType().equals("n")) { builder.append(" --> \n");
private Set<Integer> getAllFieldsUsed(Map<String, MsgType> msgTypes) { Set<Integer> result = new TreeSet<>(); for (MsgType msgType : msgTypes.values()) { result = addFields(result, msgType.getMsgContent()); } System.out.println("Fields used: " + result); return result; }
public final Component getStandardTrailer(MsgType msgType) { for (Object o : msgType.getMsgContent()) { if (o instanceof Component && ((Component) o).isStandardTrailer()) { return (Component) o; } } return null; }
public final Component getStandardHeader(MsgType msgType) { for (Object o : msgType.getMsgContent()) { if (o instanceof Component && ((Component) o).isStandardHeader()) { return (Component) o; } } return null; }
private Set<String> getAllComponentsUsed(Map<String, MsgType> msgTypes) { Set<String> result = new HashSet<>(); for (MsgType msgType : msgTypes.values()) { result = addComponents(result, msgType.getMsgContent()); } System.out.println("Components used: " + result); return result; }
public final Component getStandardTrailer(MsgType msgType) { for (Object o : msgType.getMsgContent()) { if (o instanceof Component && ((Component) o).isStandardTrailer()) { return (Component) o; } } return null; }
public final Component getStandardHeader(MsgType msgType) { for (Object o : msgType.getMsgContent()) { if (o instanceof Component && ((Component) o).isStandardHeader()) { return (Component) o; } } return null; }
public final Component getStandardHeader(MsgType msgType) { for (Object o : msgType.getMsgContent()) { if (o instanceof Component && ((Component) o).isStandardHeader()) { return (Component) o; } } return null; }
private Set<Integer> getAllFieldsUsed(Map<String, MsgType> msgTypes) { Set<Integer> result = new TreeSet<>(); for (MsgType msgType : msgTypes.values()) { result = addFields(result, msgType.getMsgContent()); } System.out.println("Fields used: " + result); return result; }
public final Component getStandardTrailer(MsgType msgType) { for (Object o : msgType.getMsgContent()) { if (o instanceof Component && ((Component) o).isStandardTrailer()) { return (Component) o; } } return null; }
private Set<String> getAllComponentsUsed(Map<String, MsgType> msgTypes) { Set<String> result = new HashSet<>(); for (MsgType msgType : msgTypes.values()) { result = addComponents(result, msgType.getMsgContent()); } System.out.println("Components used: " + result); return result; }