/** * when this class has ref to some {@link XMLColumn}, if it's the first time to visit the list, * the inner list will init from the id list. */ private void initInnerList() { if (isListNull() && idList != null) { for (String id : idList) { add((XMLColumn) IdCollector.get(id)); } } else if (isListNull() && idList == null) { log.warn(WARN_NO_INNER_LIST_NAME, "XMLColumns"); } }
/** * @param node * @param xmlTable */ public XMLColumns(Node currentNode, XMLTable xmlTable) { this.superTable = xmlTable; XMLColumn column = null; List<Node> nodeList = getNodes(O_COLUMN, currentNode); if (ListUtil.isNotEmpty(nodeList)) { for (Node node : nodeList) { column = new XMLColumn(node, this); add(column); IdCollector.put(column.getId(), column); } log.debug(INITIALLIZED_NAME, "XMLColumns"); } }